Related to #4097.
In our spo group user remove command, we allow for removing users by upn. Aside from that we could also allow people to remove users by email or user Id. I mean the site user id a user has on a SharePoint site.
We could add the following options to allow for this
| Option |
Description |
--email [email] |
The email of the user to remove as a member. Specify either userName, email or userId. |
--userId [userId] |
The user Id of the user to add as a member. (Id of the site user, for example: 14) Specify either userName, email or userId. |
Remarks
Update: We've renamed the commands to spo group member in #4087.
Examples
Remove a user as group member by site user id
m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userId 14
Remove a user as group member by email
m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --email "[email protected]"
Related to #4097.
In our spo group user remove command, we allow for removing users by upn. Aside from that we could also allow people to remove users by email or user Id. I mean the site user id a user has on a SharePoint site.
We could add the following options to allow for this
--email [email]userName,emailoruserId.--userId [userId]userName,emailoruserId.Remarks
Update: We've renamed the commands to spo group member in #4087.
Examples
Remove a user as group member by site user id
Remove a user as group member by email
m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --email "[email protected]"