Forum Discussion
Wolfgang Senfter
Jun 21, 2018Copper Contributor
Error when using Connect-PNPOnline -scopes
Hi,
I'm trying to connect to a modern team site with Powershell and modify the Office365 group.
Therefore I use the following cmdlet:
Connect-PnPOnline -Url $url -Credentials $credentials -Scopes "Group.ReadWrite.All"
But I get an error:
Connect-PnPOnline : AADSTS50105: The signed in user is not assigned to a role for the application 'bb0c5778-9d5c-41ea-a4a8-8cd417b3ab71'.
The user I use has the following roles:
- SharePointAdministrator
- UserAdministrator
- ExchangeAdministrator
Also, the user is the owner of the application "PnP.Powershell" in the Azure portal settings.
Does anyone have an idea what I'm missing?
I tried so many things but I can't get this working.
Kind regards
No RepliesBe the first to reply