You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ID of the Entra ID group. Specify groupId or groupDisplayName but not both.
-n, --groupDisplayName [groupDisplayName]
The display name of the Entra ID group. Specify groupId or groupDisplayName but not both.
--ids [ids]
Entra ID IDs of users. You can also pass a comma-separated list of IDs. Specify either ids or userNames but not both.
--userNames [userNames]
The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either ids or userNames but not both.
-r, --role <role>
The role to be assigned to the new users. Valid values: Owner, Member.
Examples
Add a single user specified by ID as a member to a group specified by display name
m365 entra group user add --groupDisplayName Developers --ids 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
Add multiple users specified by ID as members to a group specified by ID
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
Add a single user specified by UPN as an owner to a group specified by display name
m365 entra group user add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
Adds multiple users specified by UPN as owners to a group specified by ID
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
Default properties
No response
Additional Info
Let's use Graph batching to add the users in batch.
The text was updated successfully, but these errors were encountered:
Usage
m365 entra group user add [options]
Description
Adds a user to a Microsoft Entra ID group
Options
-i, --groupId [groupId]
groupId
orgroupDisplayName
but not both.-n, --groupDisplayName [groupDisplayName]
groupId
orgroupDisplayName
but not both.--ids [ids]
ids
oruserNames
but not both.--userNames [userNames]
ids
oruserNames
but not both.-r, --role <role>
Owner
,Member
.Examples
Add a single user specified by ID as a member to a group specified by display name
Add multiple users specified by ID as members to a group specified by ID
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
Add a single user specified by UPN as an owner to a group specified by display name
Adds multiple users specified by UPN as owners to a group specified by ID
m365 entra group user add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "john.doe@contoso.com,adele.vance@contoso.com" --role Owner
Default properties
No response
Additional Info
Let's use Graph batching to add the users in batch.
The text was updated successfully, but these errors were encountered: