Skip to content

Set-pnpSite -classification doesnot work #9787

@chandan805

Description

@chandan805

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

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

  • Set-PnPSite -Classification "Confidential"
  •   + CategoryInfo          : WriteError: (:) [Set-PnPSite], ServerException
      + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Site.SetSite
    
    
    

Expected behavior

It should set the Confidential as classification for the site.

Metadata

Metadata

Assignees

Labels

Needs: Triage 🔍Awaiting categorization and initial review.sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.type:invalid-not-dev-issueThis repo+issue list is for SharePoint development topics. Non-dev issues will be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions