Forum Discussion
Access Exchange online Via Powershell permission only Org. Admin ?Global Admin?
Everyone can access PowerShell, but most cmdlets wont be exposed unless the user has the required role. In Exchange Online, you can get very granular with the permissions, down to individual cmdlets. However, the example you gave, Get-MsolUser, is NOT an Exchange Online cmdlet, but part of the MSOnline mode. For that, you don't have that much customizability.
- CHEUNG PeterMar 02, 2020Copper Contributor
if I use Get-Mailbox need which permission? because I use this account of the automation task scheduler, so I don't want the account had much permission
because I can't make sure ConvertFrom-SecureString is Secure
- VasilMichevMar 02, 2020MVP
To find out which role contains a specific cmdlet, you can use Get-ManagementRole. In this case, if all you need is Get-Mailbox, you can either use the built-in "View-Only Recipients" role, or create a custom one.