question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: extra options when adding SharePoint Group members for adding Azure AD groups

See original GitHub issue

In our spo group user add command, we currently do not allow to add Azure AD groups as a user.

We could add the following option to allow for this

Option Description
--aadGroupId [aadGroupId] The object Id of the Azure AD group to add as a member. If multiple groups needs to be added, the Id’s have to be comma separated. Specify either userName, email, aadGroupId or aadGroupName.
--aadGroupName [aadGroupName] The name of the Azure AD group to add as a member. Specify either userName, email, aadGroupId or aadGroupName.

Remarks

Update: We’ve renamed the commands to spo group member <verb> in #4087.

When adding groups by name, you cannot use a comma separated list of multiple names. The comma could be part of the display name.

Examples

Add an Azure AD group as a SharePoint Group Member

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

Add the Azure AD Sales group as a SharePoint Group Member

m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --aadGroupName "Sales"

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
waldekmastykarzcommented, Nov 27, 2022

Agreed with @Adam-it: we should allow specifying just one identifier

1reaction
martinlingstuylcommented, Nov 27, 2022

Changed it and opened it up 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to manage groups - Azure Active Directory - Microsoft Entra
In this article. Create a basic group and add members; Add or remove members and owners; Edit group settings; Add or remove a...
Read more >
how create group in activedirectory and add it to sharepoint site
Sign in Azure Active Directory admin center as SharePoint admin or Global admin · Go to Azure Active Directory tab, and select Groups...
Read more >
User management enhancements - Azure Active Directory
This article describes how to use the user management enhancements in the admin center for Azure Active Directory (Azure AD), part of Microsoft ......
Read more >
Use additional context in Microsoft Authenticator notifications
Additional context can be targeted to only a single group, which can be dynamic or nested. On-premises synchronized security groups and ...
Read more >
Use cloud groups in on-premises Active Directory with group ...
I'm thrilled to announce major enhancements to group writeback are in public ... Use Azure AD Connect to write cloud groups, including security....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found