In order to check what sensitivity label is applied to O365 group you may go to Azure portal > Azure Active Directory > Groups > select group. Sensitivity label will be displayed in overview tab of the group:
In order to get sensitivity label applied to O365 group programmatically via Graph API you may use the following endpoint:
https://graph.microsoft.com/v1.0/groups/%7BgroupId%7D?$select=assignedLabels
It will return applied label id and display name like this:
1 2 3 4 5 6 7 8 | { "assignedLabels" : [ { "labelId" : "..." , "displayName" : "Private" } ] |
You may test this endpoint e.g. in Graph Explorer:
No comments:
Post a Comment