Aug 10 2021 01:47 AM
I am trying to export a design template for a site that I am in the Owners group for, and I have Share Point Administrator role activated. I am running the Powershell ISE as ADMIN
When I run the following 2 powershell commands
It starts running and the thermometer bar, reads 'Site Security' and then fails immediately with the following error
Get-PnPSiteTemplate : Attempted to perform an unauthorized operation.
At line:1 char:1
+ Get-PnPSiteTemplate -Out C:\Folder\Design.xml
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Get-PnPSiteTemplate], ServerUnauthorizedAccessException
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.GetSiteTemplate
When I run the following 2 powershell commands
The connect-pnponline command suggests I use the -Interactive flag, but it starts running, and gets further and the thermometer bar goes through 'Site Security', 'Audit', 'Fields', 'Content Types' and starts on 'List Instances' and starts to list the lists, and fails on the first one, which is called 'Confidential files' with the following error :
Get-PnPSiteTemplate : GetAccessTokenAsync() called without an ACS token generator. Specify in AuthenticationManager
No Output is saved
Powershell is version 5.1.18362.1593
Any ideas on how to fix this, or even to get more information on what unauthorised operation is running, or how to force the ACS Token wen I am querying lists
Thanks - Richard
Aug 10 2021 02:28 AM
Aug 11 2021 03:11 AM