Forum Discussion
Set-FileLabel for multiple different permissions
It's a semicolon-separated list of rightsdefinitions, if you need an example check here: https://petri.com/assigning-rights-label/
- ConorShermanApr 07, 2025Copper 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