Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago

API information for Power BI Report Server authorization management

Requirements:
We needs to customize a UI interface based on Power BI Report Server and aims to implement the following two features in the UI. They are looking for related API information:
1.To add view or edit permissions for directories or reports.
https://learn.microsoft.com/en-us/power-bi/report-server/getting-around#web-portal-roles-and-permissions
2.To set Row-Level Security (RLS).
https://learn.microsoft.com/en-us/power-bi/report-server/row-level-security-report-server#add-members-to-roles


Progress:
1.Regarding the API for permission policies at the directory and folder levels, we have only found a simple description of the API information, but no specific examples to confirm whether these are user permission configuration interfaces:
1)Directory: Set Catalog Item Policies
https://learn.microsoft.com/en-us/rest/api/power-bi-report/catalog-items/set-catalog-item-policies
2)Folder: Set Folder Policies
https://learn.microsoft.com/en-us/rest/api/power-bi-report/folders/set-folder-policies

2.For permission policies at the report level, we cannot confirm the difference between the following two points, and there is no API information for Row-Level Security (RLS):
1) Power BI Report Policies
https://learn.microsoft.com/en-us/rest/api/power-bi-report/power-bi-reports/set-power-bi-report-policies
2) Data Model Role Assignments
https://learn.microsoft.com/en-us/rest/api/power-bi-report/power-bi-reports/replace-power-bi-report-data-model-role-assignments

3.We did not find any interface information regarding permission addition or role assignment in the provided examples: https://github.com/Microsoft/Reporting-Services

4.We have found the PowerShell library and examples (though still searching for RLS), but it seems these may not be applicable for Web API calls:
https://www.powershellgallery.com/packages/ReportingServicesTools/0.0.6.5/Content/Functions%5CSecurity%5CRest%5CGrant-RsRestItemAccessPolicy.ps1


Questions:
Could you help find the API information for granting permissions at the directory, folder, and report levels, as well as the API information for RLS?

 

Thank you very much!