Nov 11 2020
I'm trying to add a team to an existing O365 group using PnP-PowerShell
When I'm using the below PnP PowerShell cmd (this command uses my credentials from CredentialManager in Windows)
Connect-PnPOnline -Url https://xxx.sharepoint.com/sites/xxx
To add a team to a O365 group I get this error
"AADSTS700082: The refresh token has expired due to inactivity.\u00a0The token was issued on 2020-05-02T07:49:52.9345328Z and was inactive for 90.00:00:00.},"error.redirectUrl":"https://xxx.sharepoint.com/sites/xxx?reauthid=2.MXwwfA.Ec3D"
Connect-PnPOnline -Url https://xxx.sharepoint.com/sites/xxx -UseWebLogin
The command works. But we do this in an automated process so we want to use CredentialManager credentials.
We tried to invalidate all tokens using:
But no luck
Is there any way I can refresh or invalidate the token?