Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
UserStringYesA user's object id or sign-in name (user principal name).
NestedBooleanNofalseAlso the groups it belongs to through other groups.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, name, mail, security.
namesListThe groups' display names.
countNumberHow many groups.