Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
msprog
Advocate III
Advocate III

Sensitivity labels : how to extract the label names from guids

 
 

Hey, 

We have applied sensitivity labels on our PowerBI content like dataset, reports. 

When i use the Scanner API, i see in the result json that the sensitivity label guids are returned(see below) -

msprog_0-1697537212734.png

Is there any separate API available/any other way  to get the Sensitivity guid to names mapping please 

 

Please help

 

Thanks

1 ACCEPTED SOLUTION

Thanks for this. But i used the Graph API to get the label guid to name mapping. 

https://learn.microsoft.com/en-us/graph/api/security-informationprotection-list-sensitivitylabels?vi...

 

Hoping this assists others. 

 

View solution in original post

3 REPLIES 3
msprog
Advocate III
Advocate III

Hey, 

We have applied sensitivity labels on our PowerBI content like dataset, reports. 

When i use the Scanner API, i see in the result json that the sensitivity label guids are returned(see below) - I need to get the corresponding names please.  How can this be achieved please?

msprog_0-1697444536438.png

 

 

Is there any separate API available that would return the actual label names or any way to get the master list of Labels available?

 

Please help

 

Thanks

 

 

 

 

v-zhangti
Community Support
Community Support

Hi, @msprog 

 

I check the rest API document but not found the get sensitive label API, it seems existed API to set or remove specific label.

Set or remove sensitivity labels programmatically with admin APIs - Power BI | Microsoft Learn

 

In addition, the document also mentions these sensitive label operations seems will be records in the audit logs. For this situation, perhaps you can try to use activity log related API to indirectly get these labels.

Sensitivity label audit schema - Power BI | Microsoft Learn

Track user activities in Power BI - Power BI | Microsoft Learn

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for this. But i used the Graph API to get the label guid to name mapping. 

https://learn.microsoft.com/en-us/graph/api/security-informationprotection-list-sensitivitylabels?vi...

 

Hoping this assists others. 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.