Skip to content

Add or Remove Users to Groups in Microsoft 365

In this article, you will learn how to add and remove users from groups in Microsoft 365 using both the admin center and PowerShell. You will also learn how to allow other users (non-admins) to manage and update group membership.

  • Who can modify group members
    • Global Administrator
    • Group owner
    • User Administrator

Add a member to a group in the admin center

Section titled “Add a member to a group in the admin center”
  1. Log into the Microsoft 365 Admin Center

  2. Go to Teams & Groups > Active teams & groups

  3. Click the group you want to add a user to.

  4. Select the Membership tab, then select the members. Select Add members

    select membership tap

  5. Search the accounts name, then select add at the bottom to add the account.

    search for user

  6. A green confirmation message will appear at the top if the user is added successfully.

    confirm user added to group

Remove a member from a group in the admin center

Section titled “Remove a member from a group in the admin center”
  1. Log into the Microsoft 365 Admin Center

  2. Go to Teams & Groups > Active teams & groups

  3. Select the group you want to remove a user from.

  4. Select the Membership tab, then select the members.

  5. Click the user you want removed, select Remove as a member

    select remove user from group

In this section you will learn how to give another user (non-admin) permissions to manage groups (add and remove members)

  1. In the Admin Center, to to Teams & Groups > Active teams & groups

  2. Find the group you want to add an owner to.

  3. Select the Membership tab, then select members. Go to Add members

    membership tab

    Search for the account and add it as a member.

  4. Select the Membership tab then go to Owners. Click on Add owners

    select membership tab

  5. Search the accounts name, then select add at the bottom to add the account to add as an owner. (You have to add the account as a member and an owner)

    search for user account

  6. A green confirmation message will be shown at the top if the user was added as an owner successfully

    confirm

When you’re an owner of a Microsoft 365 group but not an admin, you can’t manage it in the admin center. Instead, you’ll need to manage the group using Outlook.

  1. Open outlook

  2. Select Go to Groups

    outlook groups

  3. Go to the group you want to add a member to. Select the Members tab then Add members at the top.

    select members

  4. Search the user then select add to add the account to the group.

    search for a user

To add a user to a group using PowerShell you need the Group ID and the User ID.

  1. Install Microsoft Graph (skip to step 2 if already installed)

    Terminal window
    Install-Module -Name Microsoft.Graph -Scope CurrentUser
  2. Connect to Microsoft graph

    Terminal window
    Connect-MgGraph -Scopes User.ReadWrite.All, Directory.AccessAsUser.All
  3. Get the Group ID and the User ID.

    Group ID

    Terminal window
    Get-MgGroup -Filter "displayName eq 'Group Name'"

    get group id powershell

    User ID

    Terminal window
    Get-MgUser -UserId user@domain.com

    get user id powershell

  4. Now take the Group ID and the User ID and use them in the command below to add a user to a group.

    • GroupID = Group ID
    • DirectoryObjectID = User ID
    Terminal window
    New-MgGroupMember -GroupId <GroupID> -DirectoryObjectId <UserID>

    add user to group powershell

  5. The account will now be added to the group.

    verify group membership powershell

  6. Below is the command to list group members with powershell.

    Terminal window
    Get-MgGroupMember -GroupId $Group.Id | Select DisplayName, UserPrincipalName

Removing a user from a Microsoft 365 group uses the same first steps as adding a user.

  1. Connect to Microsoft Graph.

  2. Get Group ID.

  3. Get User ID.

  4. Use the command below to remove a user once you have the Group ID and User ID

    Terminal window
    Remove-MgGroupMember -GroupId <GroupID> -DirectoryObjectId <UserID>

remove user from group powershell