Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Power BI Report Level Permissions

I'm trying to modify dataset and report level permissions(Adding/Removing Reshare permissions). Both of these can be done on the portal(app.powerbi.com) but I would like to automate this process.

 

https://learn.microsoft.com/en-us/rest/api/power-bi/

 

I have gone through this REST API reference guide. While there is an API for modifying dataset level permissions(PUT Dataset User in Group), there isn't anything for modifying report level permissions.

Is there any API/way of modifying report level permissions other than doing it manually on Power BI online portal?

2 Replies

  • v-zhangti's avatar
    v-zhangti
    Community Support

    Hi, Anonymous 

     

    Yes, you can modify report level permissions programmatically using the Power BI REST API. The API provides programmatic access to dashboard resources such as datasets, tables, and rows in Power BI. To perform operations on Power BI resources, you send HTTP requests with a supported method: GET, POST, PUT, or DELETE to an endpoint that targets a resource collection or a specific resource. A Power BI operation requires an Azure Active Directory (AAD) access token.

     

    You can use the API to create, view, and share a custom report in Permissions Management[1]. You can also modify a saved or scheduled custom report.

     

    Here is an example of how to refresh user permissions using the REST API:

    POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/RefreshUserPermissions

     

    You can find more information on how to use the Power BI REST API in the official documentation.

    Power BI REST API - Overview (azure.com)

     

    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.