๐Ÿ‘ฅ Recipe ยท User & Group Management

Remove a User from a Microsoft 365 / Entra ID Group

Revoke group membership cleanly across GUI, Graph API, and PowerShell

Complexity

Beginner

Impact

access-control + offboarding + group-management + least-privilege

Context

Why This Matters

Group membership in Microsoft 365 / Entra ID drives access to shared mailboxes, Teams, SharePoint sites, licenses (via group-based licensing), and Conditional Access policy scope. When a user changes roles, leaves a team, or is offboarded from a specific business function, removing them from the appropriate group is a standard access-hygiene task.

This recipe covers removing a single user from a single group โ€” the most common helpdesk request. It applies equally to security groups, Microsoft 365 groups, and mail-enabled security groups. It does not cover dynamic groups (membership there is rule-based and cannot be edited directly) or on-premises-synced groups (those must be edited in on-prem Active Directory).

Expected Outcomes

  • The specified user is no longer a member of the specified group.
  • Any group-delivered access (shared resources, licenses assigned via group, CA policy scope) is revoked on the next token refresh.
  • An audit trail entry exists in the Entra audit log showing who performed the removal and when.

Risks & Considerations

Before you remove

  • Confirm the group source. If the group is synced from on-premises AD (onPremisesSyncEnabled = true), the change must be made in AD โ€” cloud-side removals will be overwritten at the next sync cycle.
  • Dynamic groups cannot be edited manually. If the group has a membership rule, you must change the user's attributes (e.g., department) so they no longer match the rule.
  • Group-based licensing. If the group assigns a license, removing the user may immediately revoke that license. Confirm the user has alternate license coverage if they still need the service.
  • Last owner rule. For Microsoft 365 groups, do not remove the only remaining owner without assigning a replacement โ€” the group becomes unmanaged.
  • Token latency. Access revocation is not instantaneous. Existing tokens remain valid for up to an hour. For urgent revocation (e.g., termination), also revoke the user's refresh tokens.

Required Permissions

PermissionWhy It's Needed
GroupMember.ReadWrite.AllRequired to remove members from Entra ID groups via Microsoft Graph.
Group.ReadWrite.AllAlternative higher-scope permission covering full group management.
Groups Administrator (role)Least-privilege Entra role for admins performing group membership changes in the portal.

The fastest way to get this done โ€” just ask Dex. Copy the prompt below and paste it into your Dex conversation.

For IT Admins

Paste into Dex CoAdmin

Remove {user} from the "{group_name}" group in Entra ID. Confirm the group is cloud-managed (not on-prem synced or dynamic), perform the removal, and verify the user no longer appears in the group's membership.
Try in Dex CoAdmin

For End Users

How an employee would ask Dex for help

I shouldn't have access to the {group_name} team anymore โ€” can you take me off that list?
Try in Dex Playground