capabilities.work

Offboard User From Group

A 3-step recipe with Microsoft Entra. We can help you get access.

Recipe · 3 steps

Offboard User From Group

with Microsoft Entra · Identity & Access Management

Resolve a user by UPN, remove from a group, then list members.

  1. Filter the users collection on userPrincipalName to resolve the user's object id.
  2. Remove the user from the group by deleting the membership reference identified by the user's object id. Returns 204.
  3. List the group's remaining members to confirm the removal.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer token with User.Read.All and GroupMember.ReadWrite.All.
  • groupId: Object id of the group to remove the user from.
  • userPrincipalName: UPN of the user to remove (e.g. user@contoso.com).
For your developer

Arazzo workflow microsoft-entra:offboard-user-from-group, 3 operations: listUsers → removeGroupMember → listGroupMembers. Specs on APIs.io.