PnP-PowerShell
PnP-PowerShell copied to clipboard
[Issue] Add-PnPTeamsTeam - The refresh token has expired due to inactivity
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
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
@VesaJuvonen @erwinvanhunen @KoenZomers any update on this issue?
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
I am also having the exact same issue, while using Apply-PnPTenantTemplate.