Skip to content
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

Enhancement: Remove an Azure AD group as member from a SharePoint Group #4098

Closed
martinlingstuyl opened this issue Nov 17, 2022 · 3 comments
Closed

Comments

@martinlingstuyl
Copy link
Contributor

martinlingstuyl commented Nov 17, 2022

Related to #3787

In our spo group member remove command, we currently do not allow to remove Azure AD groups.

We could add the following option to allow for this

Option Description
--aadGroupId [aadGroupId] The object Id of the Azure AD group to remove as a member. Specify either aadGroupId or aadGroupName.
--aadGroupName [aadGroupName] The name of the Azure AD group to remove as a member. Specify either aadGroupId or aadGroupName.

Remarks

Update: We've renamed the commands to spo group member in #4087.

Examples

Remove an Azure AD group as a SharePoint Group Member

m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --aadGroupId "121917be-e057-44e6-b017-238166656223"

Remove the Azure AD Sales group as a SharePoint Group Member

m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --aadGroupName "Sales"
@waldekmastykarz
Copy link
Member

Looks good, let's do it

@nicodecleyre
Copy link
Contributor

Could i work on this?

@martinlingstuyl
Copy link
Contributor Author

Thanks @nicodecleyre! Good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants