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 dodefb ,
It seems like there might be an issue with the access token you are using. Could you please check the following info?
- Make sure you have registered your application in Azure Active Directory and have the correct client ID and client secret.
- Make sure you have the correct tenant ID for your organization.
- Make sure you have the correct scopes for the Power BI API.
- Make sure that _tenantId, _clientID, and _clientSecret are correctly set.
- Make sure that the token has the necessary permissions to access the data you are trying to retrieve.
- Access token is valid as access tokens are time-limited.
How do I get an OAuth 2.0 authentication token in C# - Stack Overflow
Best Regards
- dodefb2 years agoFrequent Visitor
hi Anonymous ,
i tried what you wrote but unfortunately i still taking same error (count=0)
i added all screenshots below, could you check its please.
Thank you
DD