I am now completely lost, searching from last 3 days all the settings which should be implemented but still getting this error. I Then Check API call’s header X-PowerBI-Error-Info. What I found there was: “ServicePrincipalIsNotAllowedByTenantAdminSwitch”.
So, my tenant’s admin switched on “Allow service principals to use with Power BI APIs” and apply it to security group where Service Principal resides.
All the API permissions are in place , i gave access to both security group as well to the service principal to my workspace . What can be still missing 🙁