-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command: entra group member remove
#5472
Comments
aad group user remove
entra group user remove
@pnp/cli-for-microsoft-365-maintainers, currently if a user is a member of a group and you run this command without the Would it make sense if we add an extra flag |
That would indeed make it even more user-friendly. That option sounds good to me but we should make sure that the explanation is clear enough for the end-users, either in the option description itself or in a well-written remark regarding the usage of that option. |
+1 |
entra group user remove
entra group member remove
Usage
m365 entra group member remove [options]
Description
Removes members from a Microsoft Entra 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
. Defaults to both.-f, --force
Examples
Remove a single user specified by ID as a member from a group specified by display name
Remove multiple users specified by ID from a group specified by ID
m365 entra group member remove --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --ids "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8"
Remove a single user specified by UPN as an owner from a group specified by display name
Removes multiple users specified by UPN from a group specified by ID
m365 entra group member remove --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userNames "[email protected],[email protected]"
Default properties
No response
Additional Info
Let's use Graph batching.
The text was updated successfully, but these errors were encountered: