Forum Discussion
ubersparky
3 years agoNew Member
PowerBI API Returns "PowerBINotAuthorizedException" despite permissions
Hi - I am trying to access the API to download usage statistics from PowerBI and integrate with other reports. When I run the below code import requests
import json
base_url = "https://ap...
- 3 years ago
When you use the admin api you need to grant access to this in the tenant admin. Because you use service principal this need to be added in a security group, and this group needs to be granted admin api access in the tenant admin portal.
When this is done, I,ve experienced it can take up to 20-30 min before it works.
Br
Marius
mariussve1
Solution Sage
3 years agoWhen you use the admin api you need to grant access to this in the tenant admin. Because you use service principal this need to be added in a security group, and this group needs to be granted admin api access in the tenant admin portal.
When this is done, I,ve experienced it can take up to 20-30 min before it works.
Br
Marius