Forum Discussion

Tom-CK's avatar
Tom-CK
New Member
5 years ago

Set "Build"-permission for a dataset programmatically

In our workspace in PowerBI service there is a shared dataaset.
The users for this workspace are changing very often, so I created a script in PowerShell to process a list of users and grant them "View" permissions to the workspace.

Now we found out, that users additionally need a "build"-permission granted on a shared dataset - otherwise they are not able to export data to excel (see Build permission for shared datasets - Power BI | Microsoft Docs).

Is there any solution (PowerShell, Rest-API, .....) to grant the build permisssion for a shared dataset porgrammatically ?

2 Replies

  • Instead of granting access to users consider to move your access process to distribution lists, and manage list membership outside of Power BI.

  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    Hi Tom-CK ,

     

    I'm afraid there isn't such a API for now. You could create a new idea to help improve power bi.

    https://ideas.powerbi.com/ideas/ 

    As lbendlin mentioned earlier, you can also use it as an alternative .

     

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