Forum Discussion

madhantce's avatar
madhantce
Copper Contributor
Feb 07, 2019

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

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?redirectSourcePath=%252farticle%252faf341600-5f68-40b3-a73e-73562715acd1

 

Thanks,

Madhan

No RepliesBe the first to reply

Resources