Forum Discussion
Set-FileLabel for multiple different permissions
Hi, I am wondering if there are any solutions for applying a label in PowerShell with user defined permissions, while granting different levels of permissions?
For example, I want to apply labelID xyz, for ***@email.com viewer, ***@email.com reviewer, ***@email.com CoOwner.
The only information that was shown in Microsoft documentation was for one permission type, not multiple. We are trying create an automation process that would leverage a powershell script to do this.
Thank you in advance!
2 Replies
It's a semicolon-separated list of rightsdefinitions, if you need an example check here: https://petri.com/assigning-rights-label/
- ConorShermanCopper Contributor
Hi Vasil,
Thank you for your response. The document you listed is for changing a label that is in the tenant. I am talking about applying a label to a file that the label is defined to let users assign permissions when the label is applied. I am trying to use a script to take a file, apply that label, and apply the permissions for that file.
However, the documentation that Microsoft has does not show how to apply the label to a file where you are giving many users different levels of access.
Here is the sample script that Microsoft does provide
https://learn.microsoft.com/en-us/powershell/module/purviewinformationprotection/set-filelabel?view=azureipps