cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.