Groups of a user
List the groups a user belongs to: directly, or also through groups inside groups (nested).
Command in the Microsoft 365 toolkit · id ooa.microsoft365/entra_user_groups · 4 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| User | String | Yes | A user's object id or sign-in name (user principal name). | |
| Nested | Boolean | No | false | Also the groups it belongs to through other groups. |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: id, name, mail, security. |
| names | List | The groups' display names. |
| count | Number | How many groups. |