Forum Discussion
Rest API odata.count = 0
- 2 years ago
Hi Anonymous ,
i have solved my problems. We should have given permission each workspace to App Name.
but i have another problem. ı can get groups's users but can't report's users.
checked rest api doc it says use the "Admin - Reports GetReportUsersAsAdmin" method to get report users.
when it try this code i getting 401 unauthorized errror.
Which permission i should add to my app?
Hi Anonymous ,
i have solved my problems. We should have given permission each workspace to App Name.
but i have another problem. ı can get groups's users but can't report's users.
checked rest api doc it says use the "Admin - Reports GetReportUsersAsAdmin" method to get report users.
when it try this code i getting 401 unauthorized errror.
Which permission i should add to my app?
- Anonymous2 years agoNot applicable
Hi dodefb ,
The 401 Unauthorized error usually occurs when the server is unable to authenticate the request. This could be due to incorrect credentials, insufficient permissions, or other issues related to authentication. Please review the following official documentation and check if you have gotten the proper permission.
- The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.
- Delegated permissions are supported.
When running under service prinicipal authentication, an app must not have any admin-consent required premissions for Power BI set on it in the Azure portal.
Best Regards
- dodefb2 years agoFrequent Visitor
Hi Anonymous
thanks for reply, i had read that article on learn.microsoft.com but it's not clear for me.
as you know i using a service principal
What "When running under service prinicipal authentication, an app must not have any admin-consent required premissions for Power BI set on it in the Azure portal." means? what should i do?
- Anonymous2 years agoNot applicable
Hi dodefb ,
The 401 Unauthorized error usually occurs when the server is unable to authenticate the request. This could be due to incorrect credentials, insufficient permissions, or other issues related to authentication. Please review the following official documentation and check if you have gotten the proper permission.
- The user must have administrator rights (such as Office 365 Global Administrator or Power BI Service Administrator) or authenticate using a service principal.
- Delegated permissions are supported.
When running under service prinicipal authentication, an app must not have any admin-consent required premissions for Power BI set on it in the Azure portal.
Best Regards