Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

How to get label activity reports user level and file level programatically?

Copper Contributor

Hello,

 

I used labels and policies in Data Governance. After I auto-published the label, I see the individual files in OneDrive getting tagged with a label.

 

I need to programmatically check if there are any labels associated with the file and categorize them. I don't see the labels data while querying through Graph as well.

 

https://graph.microsoft.com/v1.0/me/drive/root/children/test.txt

 

Do we have any powershell commands or REST API to get these data in granular level?

 

https://docs.microsoft.com/en-us/office365/securitycompliance/view-label-activity-for-documents?redi...

 

Thanks,

Madhan

0 Replies