Usage
m365 entra user groupmembership list [options]
Description
Retrieves all groups where the user is a member of
Options
| Option |
Description |
-i, --userId [userId] |
The ID of the user to retrieve information for. Use either userId, userName or userEmail, but not multiple. |
-n, --userName [userName] |
The name of the user to retrieve information for. Use either userId, userName or userEmail, but not multiple. |
-e, --userEmail [userEmail] |
The email of the user to retrieve information for. Use either userId, userName or userEmail, but not multiple. |
--securityEnabledOnly [securityEnabledOnly] |
Specifies that only security groups that the user is a member of should be returned |
Examples
Retrieves groups that the user is a member of
m365 entra user groupmembership list --userId '1caf7dcd-7e83-4c3a-94f7-932a1299c844'
Retrieves only security groups that the user is a member of
m365 entra user groupmembership list --userName '[email protected]' --securityEnabledOnly
Retrieves groups where the currently logged user is a member of
m365 entra user groupmembership list--userId "@meId"
Retrieves groups where the currently logged user is a member of
m365 entra user groupmembership list --userName "@meUserName"
Default properties
No response
Additional Info
The response contains a list of group ids
[
"123abc24-1234-415e-abcd-012ab20243d8",
"987cba80-abcd-1234-a9a8-5e6cea73cdbb"
]
https://learn.microsoft.com/en-us/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0&tabs=http
I will work on it
Usage
m365 entra user groupmembership list [options]
Description
Retrieves all groups where the user is a member of
Options
-i, --userId [userId]userId,userNameoruserEmail, but not multiple.-n, --userName [userName]userId,userNameoruserEmail, but not multiple.-e, --userEmail [userEmail]userId,userNameoruserEmail, but not multiple.--securityEnabledOnly [securityEnabledOnly]Examples
Retrieves groups that the user is a member of
m365 entra user groupmembership list --userId '1caf7dcd-7e83-4c3a-94f7-932a1299c844'Retrieves only security groups that the user is a member of
m365 entra user groupmembership list --userName '[email protected]' --securityEnabledOnlyRetrieves groups where the currently logged user is a member of
m365 entra user groupmembership list--userId "@meId"Retrieves groups where the currently logged user is a member of
m365 entra user groupmembership list --userName "@meUserName"Default properties
No response
Additional Info
The response contains a list of group ids
https://learn.microsoft.com/en-us/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0&tabs=http
I will work on it