Remove a user's active or eligible assignment to an Entra ID role.
The ID of the user in Entra ID.
The name of the directory role. If not provided, it will default to all directory roles.
Removes the user's assignment from the "User Administrator" directory role.
PS > Remove-UserFromEntraIdRole.ps1 -UserId "jwinger@greendalecc.edu" -GroupId "User Administrator"
Removes the user's assignment from any directory role.
PS > Remove-UserFromEntraIdRole.ps1 -UserId "jwinger@greendalecc.edu"
Module Name | Module Version |
---|---|
Microsoft.Graph.Authentication |
2.17.0 <= |
Microsoft.Graph.Groups |
2.17.0 <= |
Microsoft.Graph.Users |
2.17.0 <= |
Microsoft.Graph.Beta.Identity.Governance |
2.17.0 <= |