Usage
m365 purview sensitivitylabel policysettings list [options]
Description
Get a list of policy settings for a sensitivity label
Options
| Option |
Description |
--userId [userId] |
An optional id of a user for which the available policy settings should be retrieved. Optionally specify this if you want to get a list of sensitivity labels that the user has access to. Specify either userId or userName but not both |
--userName [userName] |
An optional user name of which the available policy settings should be retrieved. Optionally specify this if you want to get a list of sensitivity labels that the user has access to. Specify either userId or userName but not both |
Examples
Get a list of policy settings for a sensitivity label
m365 purview sensitivitylabel policysettings list
Default properties
No response
Additional Info
API request: https://learn.microsoft.com/en-us/graph/api/security-informationprotectionpolicysetting-get?view=graph-rest-beta&tabs=http&viewFallbackFrom=graph-rest-1.0
Let's also add this to the docs:
- Attention: This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
- Attention: When operating in app-only mode, you have the option to use either the
userName or userId parameters to retrieve the sensitivity policy settings for a specific user. Without specifying either of these parameters, the command will retrieve the sensitivity policy settings for the currently authenticated user when operating in delegated mode.
Usage
m365 purview sensitivitylabel policysettings list [options]
Description
Get a list of policy settings for a sensitivity label
Options
--userId [userId]userIdoruserNamebut not both--userName [userName]userIdoruserNamebut not bothExamples
Get a list of policy settings for a sensitivity label
Default properties
No response
Additional Info
API request: https://learn.microsoft.com/en-us/graph/api/security-informationprotectionpolicysetting-get?view=graph-rest-beta&tabs=http&viewFallbackFrom=graph-rest-1.0
Let's also add this to the docs:
userNameoruserIdparameters to retrieve the sensitivity policy settings for a specific user. Without specifying either of these parameters, the command will retrieve the sensitivity policy settings for the currently authenticated user when operating in delegated mode.