PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

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

Open markgort86 opened this issue 4 years ago • 3 comments

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?

  • [ ] PnP PowerShell for SharePoint 2013
  • [ ] PnP PowerShell for SharePoint 2016
  • [ ] PnP PowerShell for SharePoint 2019
  • [x] PnP PowerShell for SharePoint Online

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

3.26.2010.0

How did you install the PnP-PowerShell Cmdlets?

  • [ ] MSI Installed downloaded from GitHub
  • [ ] Installed through the PowerShell Gallery with Install-Module
  • [ ] Other means

markgort86 avatar Oct 14 '20 11:10 markgort86

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

markgort86 avatar Nov 05 '20 13:11 markgort86

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

markgort86 avatar Nov 05 '20 13:11 markgort86

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

nilang-shah avatar Dec 04 '20 13:12 nilang-shah