pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[Issue] Add-PnPTeamsTeam - The refresh token has expired due to inactivity #2963

Open markgort86 opened 3 years ago

markgort86 commented 3 years ago

Reporting an Issue or Missing Feature

Issue when running Add-PnPTeamsTeam. In the background this commandlet is using the following SharePoint API /_api/groupsitemanager/EnsureTeamForGroup to create a new team for this sitecollection.

Expected behavior

Connecting a newly created team to the connected sitecollection

Actual behavior

Add-PnPTeamsTeam is throwing an odata error with the following text image

Steps to reproduce behavior

Connect-PnPOnline -Url [SiteCollectionUrl] -Credentials (Get-Credential) Add-PnPTeamsTeam

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.26.2010.0

How did you install the PnP-PowerShell Cmdlets?

markgort86 commented 3 years ago

@VesaJuvonen @erwinvanhunen @KoenZomers any update on this issue?

markgort86 commented 3 years ago

I also posted an issue on StackExchange, but after one respone still no solution for this problem: https://sharepoint.stackexchange.com/questions/286410/the-refresh-token-has-expired-due-to-inactivity/286458#286458

nilang-shah commented 3 years ago

I am also having the exact same issue, while using Apply-PnPTenantTemplate.