Adding Office 365 Admin Role Group Members using PowerShell

0
9
views

Adding Office 365 Admin Role Group Members using PowerShell

To learn more about the different roles click here: Office 365 admin roles.

To start adding members to an admin role, a connection to Office 365 needs to be established first. The following script can be used from technet or you can following the below steps.

Connect to Office 365 using PowerShell:

Login with your Username and Password

A screenshot of a cell phone
Description automatically generated

Once a connection to MsOnline Service has been established, run the following to list all available Role groups.

A blue and white sign
Description automatically generated

To assign a user to the “Billing Administrator” role group, run the following.

A close up of a logo
Description automatically generated

To list all the members of the “Billing Administrator” role group, run the following.

First, we need to identify what the ObjectId for the Role group is by running the following.

A screenshot of a cell phone
Description automatically generated

Now that you have the ObjectId, run the following to get the members.

To remove a role member, form a role group, run the following.

A close up of a logo
Description automatically generated

Sharing is caring!

LEAVE A REPLY

Please enter your comment!
Please enter your name here