SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1.01k forks source link

Set-pnpSite -classification doesnot work #9787

Open chandan805 opened 3 months ago

chandan805 commented 3 months ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

not applicable

Developer environment

Windows

What browser(s) / client(s) have you tested

Additional environment details

Describe the bug / error

When using Pnp command to update the Classification of the modern site , this is not happening. These are not MIP label these are classic azure Ad directory object.

Steps to reproduce

1.Connect-PnPOnline -Url "SiteUrl" -ClientId $AppID -ClientSecret $AppSecret $a =Get-PnPSite 2.$a.Classification Confidential 3.erro: Set-PnPSite -Classification "Confidential" Set-PnPSite : Specified method is not supported. At line:1 char:1

Expected behavior

It should set the Confidential as classification for the site.

chandan805 commented 3 months ago

I am using module as below 2.5.0 PnP.PowerShell PSGallery Microsoft 365 Patterns and Practices PowerShell Cmdlets

mkm17 commented 2 months ago

Hi @chandan805 I guess the PnP PowerShell team be a better target for this question.