The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I need to update our users from our RBAC tool and push this to Power BI report server.
Is there any ways to do so?
Keeping the following in mind:
- I havent found a rest api's for Power BI report server to update users, if there is a way can you provide so guidelines and sources?
- I have tried the route of powershell within the ReportingServicesTools module and couldnt find any cmdlets that makes me update users
- As we are not using Windows Active Directory, is there any ways to do this with local user cmdlets? Are there any sources available that relates to power bi report server?
I am refering to the following Cmdlets:
Microsoft.PowerShell.LocalAccounts Module - PowerShell | Microsoft Learn
Thanks in advance!
I don't know anything about your RBAC tool. But if you can add the users manually through the web portal you can automate this using the REST API.
Thanks for the info, does the mentioned endpoint or another allow us as well to update users(adding for example) pushed from our RBAC tool to PBI RS?
The REST API has /Policies endpoints for updating user access to resources. A policy links a user or group to one or more roles for a specific resource such as a report, folder, catalogitem, etc. The following is the endpoint for setting the policies on a folder object PBIRS | 2.0 | microsoft-rs | SwaggerHub the other API endpoints for the other report server items are also listed on Swagger Hub. You can also use the network tab in the browser developer tools to see what API calls are made when you change permissions on the Portal to get some example payloads from your specific environment.