Forum Discussion
JakeHollcroft
Jul 10, 2024Copper Contributor
How to get Teams sensitivity labels
Hello all,
I'm using the Microsoft Graph API to retrieve all my organization's Teams. I have everything I need, except for the sensitivity label. Does anyone know how to go about this using the microsoft graph?
List teams - Microsoft Graph v1.0 | Microsoft Learn
I also used this documentation, but I don't see how to tie them to Teams.
sensitivityLabel resource type - Microsoft Graph beta | Microsoft Learn
3 Replies
Sort By
- You mean the "container" label assigned to the Team/Group? You can get that via the AssignedLabels property on the group object. Tony has a great Teams reporting script here, feel free to "borrow" from it: https://github.com/12Knocksinna/Office365itpros/blob/master/TeamsGroupsActivityReportV5.PS1
- JakeHollcroftCopper Contributor
Thank you for the reply. No, I don't think this would be helpful. I'm searching for the sensitivity label assigned to the Team. Not the group label.
- It's the same thing.