Nov 11 2019 05:00 AM
I am running below command in SharePoint Online Management Shell as administrator to get PnP Provisioning Template from a site collection in SharePoint online.
Get-PnPProvisioningTemplate -out Lists.xml -Handlers Lists
It throws following error in PowerShell window:
"Access denied.You do not have permission to
perform this action or access this resource."
I have checked following things:
1. User I am running with PowerShell is a site collection administrator.
2. Permission is not broken for any lists.
3. Above command runs with handlers fields and contenttypes.
4. No list has any item/document/page checked out. All data is checked in with major version published.
Nov 18 2019 01:47 PM
it could be a Term Store Administration permission issue.
Could you check if your User is a Term Store Admin?
Cheers,
Federico
Jan 22 2021 08:02 AM
@Federico Porceddu It was my problem. Thanks
Jan 22 2021 09:30 AM