Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates Get-PnPAvailableSensitivityLabel to use new endpoint #2234

Merged

Conversation

milanholemans
Copy link
Contributor

@milanholemans milanholemans commented Aug 6, 2022

Type

  • Bug Fix
  • New Feature
  • Sample
  • Enhancement

Related Issues?

Mentioned in #2233

What is in this Pull Request ?

The current endpoint to list sensitivity labels is marked deprecated (it will break next year). Replaced the old endpoints with the new ones.
Source: https://docs.microsoft.com/en-us/graph/api/informationprotectionpolicy-list-labels?view=graph-rest-beta&tabs=http

Comments

In order for this endpoint to work, delegated Graph permissions of type InformationProtectionPolicy.Read are needed. These permissions should be added to the PnP app registration.

@gautamdsheth gautamdsheth merged commit 8c360a4 into pnp:dev Aug 17, 2022
@gautamdsheth
Copy link
Collaborator

thanks @milanholemans for your PR, much appreciated !
Will ask somebody to add the permission as well.

@milanholemans milanholemans deleted the AvailableSensitivityLabel-deprecated branch August 17, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants