Home ยป Office 365 ยป Get-MsolRole – Get Administrator Roles for Company

Get-MsolRole – Get Administrator Roles for Company

The Get-MsolRole cmdlet in PowerShell gets administrator roles for the company in Microsoft Office 365.

The syntax to get the administrator roles is given below.

Get-MsolRole
   -ObjectId <Guid>
   -RoleName <String>
   [-TenantId <Guid>]
   [<CommonParameters>]

In this article, we will discuss how to use the Get-MsolRole cmdlet in PowerShell to get the administrator roles for the company in Office 365.

How to Get Administrator Roles for the Company in Office 365

To get administrator roles for the company in Office 365, use the Get-MsolRole cmdlet in PowerShell.

Get-MsolRole

This command gets administrator roles for the company. This command returns the object that contains the description of the role, whether or not the role is enabled, whether or not the role was created by Azure Active Directory, the name of the role, and the unique ID of the role.

Get Administrator Roles for the Company
Get Administrator Roles for the Company

Conclusion

I hope the above article on how to use the Get-MsolRole cmdlet in PowerShell to get administrator roles for the company in Office 365 is helpful to you.

You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.

Related Links

Get-MsolRoleMember

Get-MsolUserRole

New-MsolUser

Remove-MsolUser

Restore-MsolUser

Set-MsolUser

Leave a Comment