Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi guys, could anyone help me?
I'm developing a SAAS (Software as a Service) application and I want to incorporate Power BI.
I'm following the documentation: https://docs.microsoft.com/pt-br/power-bi/developer/embedded/embed-multi-tenancy, but I'm not able to assign permission to the profiles created.
To release the permissions I'm using the Power BI API. To send the request I am using Postman, as shown below:
1) GET https://api.powerbi.com/v1.0/myorg/groups/{{mygroupid}/users
Header: X-PowerBI-Profile-Id=myprofileid
Response:
{
"value": [
{
"groupUserAccessRight": "Admin",
"displayName": "Numpe",
"identifier": "326de76f-de5d-46ac-aa03-d88a09149723",
"principalType": "App",
"profile": {
"id": "8c04ccc3-ad55-4add-b0b9-5e294dadac69",
"displayName": "BaruelVanProfile"
}
}
]
}
2) PUT https://api.powerbi.com/v1.0/myorg/groups/{{baruelvan_workspace_id}}/users
Without X-PowerBI-Profile-Id Header
Body:
{
"groupUserAccessRight": "Admin",
"identifier": "326de76f-de5d-46ac-aa03-d88a09149723",
"principalType": "App",
"profile": {
"id": "8c04ccc3-ad55-4add-b0b9-5e294dadac69"
}
}
Response:
{
"error": {
"code": "PowerBIEntityNotFound",
"pbi.error": {
"code": "PowerBIEntityNotFound",
"parameters": {},
"details": [],
"exceptionCulprit": 1
}
}
}
3) 2) PUT https://api.powerbi.com/v1.0/myorg/groups/{{baruelvan_workspace_id}}/users
Header: X-PowerBI-Profile-Id=myprofileid
Body:
{
"groupUserAccessRight": "Admin",
"identifier": "326de76f-de5d-46ac-aa03-d88a09149723",
"principalType": "App",
"profile": {
"id": "8c04ccc3-ad55-4add-b0b9-5e294dadac69"
}
}
Response:
{
"error": {
"code": "PowerBINotAuthorizedException",
"pbi.error": {
"code": "PowerBINotAuthorizedException",
"parameters": {},
"details": [],
"exceptionCulprit": 1
}
}
}
I would like to know what would be the correct way to make the request to allow access to the workspace.
Hi @frbastos ,
Did you use it immediately after assigning it?
Perhaps you could call the Refresh User Permissions API then try again.
https://docs.microsoft.com/en-us/rest/api/power-bi/users/refresh-user-permissions .
Best Regards,
Jay
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
28 | |
26 | |
23 | |
22 | |
18 |
User | Count |
---|---|
52 | |
34 | |
28 | |
24 | |
21 |