[BUG] Set-PnPTenantSite: Attempted to perform an unauthorized operation. #3897
Unanswered
mandrick91
asked this question in
General
Replies: 1 comment 3 replies
-
You need to log in as admin on the admin site to use Set-PnPTenantSite as mentioned in the documentation :) Set-PnPTenantSite SharePoint: Access to the SharePoint Tenant Administration site https://pnp.github.io/powershell/cmdlets/Set-PnPTenantSite.html
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am Reporting an Issue with Set-PnPTenantSite
Expected behavior
I want to add second administrator (group or user) to a Site
Actual behavior
I get this error: Set-PnPTenantSite: Attempted to perform an unauthorized operation.
Steps to reproduce behavior
connect-pnponline -url "https://"CONTOSO".sharepoint.com/sites/"SITENAME"" -interactive
I login with Sharepoint Online admin role user or Global Admin
set-pnptenantsite -Url "https://"CONTOSO".sharepoint.com/sites/"SITENAME"" -Owners ""USER or SEC. GROUP""
i always get this error: Set-PnPTenantSite: Attempted to perform an unauthorized operation.
What is the version of the Cmdlet module you are running?
ModuleType Version PreRelease Name
Manifest 2.4.0 PnP.PowerShell
Manifest 2.2.0 PnP.PowerShell
Manifest 2.1.1 PnP.PowerShell
Which operating system/environment are you running PnP PowerShell on?
Nome Id Versione Origine
PowerShell 7-x64 Microsoft.PowerShell 7.4.2.0 winget
Terminale Windows Microsoft.WindowsTerminal 1.19.10821.0 winget
Beta Was this translation helpful? Give feedback.
All reactions