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
Results:
1st run - added 3 principals out of 6 to SPO Owners group - 2 AAD groups and user2
then using browser we navigated to the site and removed these AAD groups and user2 from SPO group, re-run the script
2nd run - added 2 principals out of 6 to SPO Owners group - user3 and user4
then using browser we navigated to the site we removed user3 and user4 from SPO group, re-run the script again
1st run - added 4 principals out of 6 to the SPO Owners group - 2 AAD groups, user1 and user2
in addition, we have tested it with different AAD group types: Security and M365 groups - the same issues here
"c:0t.c|tenant|group_guid"
"c:0o.c|federateddirectoryclaimprovider|group_guid"
initially we were using the latest version PnP.PowerShell version 2.1.1 by calling "Add-PnPGroupMember"
but later we checked PnP.PowerShell version 1.12.0 as well by using "Add-PnPUserToGroup" - the same issue here
This discussion was converted from issue #3155 on June 05, 2023 04:36.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Issues with adding AAD users and groups to SharePoint Online site groups using PnP.PowerShell
for example, we have created new site
https://dummy01.sharepoint.com/sites/test1
then we run the following commands:
*guids and names are replaced in this sample with pseudo
===
===
Results:
1st run - added 3 principals out of 6 to SPO Owners group - 2 AAD groups and user2
then using browser we navigated to the site and removed these AAD groups and user2 from SPO group, re-run the script
2nd run - added 2 principals out of 6 to SPO Owners group - user3 and user4
then using browser we navigated to the site we removed user3 and user4 from SPO group, re-run the script again
1st run - added 4 principals out of 6 to the SPO Owners group - 2 AAD groups, user1 and user2
in addition, we have tested it with different AAD group types: Security and M365 groups - the same issues here
"c:0t.c|tenant|group_guid"
"c:0o.c|federateddirectoryclaimprovider|group_guid"
initially we were using the latest version PnP.PowerShell version 2.1.1 by calling "Add-PnPGroupMember"
but later we checked PnP.PowerShell version 1.12.0 as well by using "Add-PnPUserToGroup" - the same issue here
please advise, thank you!
Beta Was this translation helpful? Give feedback.
All reactions