Forum Discussion
How can we apply the RLS with the Custom roles those are created by the Admin .!?
Any one can help me on the below Issue.?
- I have developed a Power BI Report and embedded with the API using the Report URLs like "GroupID", "DatasetID", "ReportID".
- The User with the "Admin" Role can add the other users and create a custom role for the new user.
- How can I get the Custom Role into the Power BI Report dynamically.... and apply the RLS for the new Custom Role.?
- Anonymous2 years ago
Hi Anonymous ,
You can use the following rest api, which supports updating specified user permissions to a specified workspace.
PUT https://api.powerbi.com/v1.0/myorg/groups/{groupId}/usersWhen embedding reports for users that require token permissions, make sure to generate RLS-compliant embedding tokens.
POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateTokenFor more details, you can refer to below document:
Groups - Update Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi Anonymous ,
You can use the following rest api, which supports updating specified user permissions to a specified workspace.
PUT https://api.powerbi.com/v1.0/myorg/groups/{groupId}/usersWhen embedding reports for users that require token permissions, make sure to generate RLS-compliant embedding tokens.
POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateTokenFor more details, you can refer to below document:
Groups - Update Group User - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.