-
Notifications
You must be signed in to change notification settings - Fork 399
Description
Reporting an Issue or Missing Feature
Unable to set site sensitivity label with Sites.Selected and Sites.Create.All.
Expected behavior
Apply a site sensitivity label
Actual behavior
Connecting using app-only auth with a certificate to an app registration having Sites.Create.All and Sites.Selected.
The site was created using a Graph API call and FullControl applied as a site app permission automatically. This is working fine for most other config settings.
Behaviour varies depending on calls used - see below.
Steps to reproduce behavior
Connect-PnPOnline -Url $siteUrl -Tenant $tenant -ClientID $clientID -Thumbprint $thumbprint
Set-PnPSiteSensitivityLabel -Identity
Attempted to perform an unauthorized operation.
Set-PnPSite -SensitivityLabel
No error - does nothing
Set-PnPSite -SensitivityLabel
Cannot bind parameter 'SensitivityLabel'. Cannot convert to type "System.Guid". Error: "unrecognized Guid format."
I get the same "unauthorized operation" error when trying to set StorageMaximumLevel and StorageWarningLevel but makes more sense that these are tenant properties. Though not sure how they can be set with Sites.Selected and FullControl?
What is the version of the Cmdlet module you are running?
Tried both:
3.10
3.1.329
Which operating system/environment are you running PnP PowerShell on?
- Windows