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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
powercdc
Regular Visitor

REST API Sensitivity Labels

I am using the scanner APIs to get metadata for my organization's Power BI tenant.

 

The API returns a 'sensitivityLabelId' GUID for reports, dashboards etc.

 

Where can I get the corresponding sensitivity label descriptions? 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @powercdc,

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

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @powercdc,

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

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
powercdc
Regular Visitor

Following much investigation, there does not appear to be an API where I can programatically query the list of sensitivity label ID and Description values

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.