Add-PNPGroupMember results in "System.UnauthorizedAccessException"
Tom-CK opened this issue · 3 comments
Hi,
simply doing a
Connect-PNPOnline -Url https://...... -UseWebLogin -ReturnConnection
followed by a
Add-PnPGroupMember -LoginName "someone@somedomain.com" -Group "Name of my group"
results in an exception:
{"odata.error":{"code":"-2147024891, System.UnaothrizedAccessException","message" .... "value: Access denied- You do not have perission to perform this action"}
Doing the same as the same user using the GUI (Browser) works fine (User is Site-Owner).
Pnp.PwoerShell Version 1.3
The code was working before updating to 1.3 and changing from Add-PnPUserToGroup to Add-PnPGroupMember.
Went back to Version 1.2.0 - everything works well.
Also getting this error. Contacting with MS support since I couldn't find a way to open an issue here.
Now I found it by googling.
Note that I also have the same issue with the command:
Set-PnPGroupPermissions
Any progress on this issue ?