Replies: 1 comment 5 replies
-
@RSCA001 - this is expected behavior, you are supposed to be a site collection admin on the site to export it as a template, just SP Admin role doesn't cover it. Can you try after adding yourself as site collection admin |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am running Powershell ISE as Admin, I connect with Connect-PnPOnline -Url https://myDomain.sharepoint.com/sites/MySite -Interactive -ForceAuthentication with a credential that has SP Admin role
Then I run Get-PnPSiteTemplate -Out C:\MyFolder\MyTemplate.xml which starts to run & fails immediately with the error in SiteSecurity
Get-PnPSiteTemplate : Attempted to perform an unauthorized operation.
When I connect to the site with the UseWebLogin flag, the Get-PnPSiteTemplate runs for longer, gets past the SiteSecurity section, and fails on a list with Get-PnPSiteTemplate : GetAccessTokenAsync() called without an ACS token generator. Specify in AuthenticationManager constructor the authentication parameters
Is this a bug, or am I doing something wrong
Beta Was this translation helpful? Give feedback.
All reactions