Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi
im building an app to push data to a dataset in Power Bi
the token i got from azure does not seam to have te persissions i gave til ap in "app registrations"
the code om using to acquire the token is
string resourceUri = "https://analysis.windows.net/powerbi/api"; string authorityUri = "https://login.windows.net/common/"; AuthenticationContext authenticationContext = new AuthenticationContext(authorityUri); var AuthResult = authenticationContext.AcquireTokenAsync(resourceUri, new ClientCredential(ClientID, AppSecret)).Result; return AuthResult.AccessToken;
and the permissions that is grated in azure ad
but when i try to create the dataset it gives me an 401
i can create the dataset when i generate the token for a user with powershell but not with the token generated from client_id and client_secret
Hope you can help
Solved! Go to Solution.
Solved it myself
App registration (service principal) needs to be a member of a Security group
Solved it myself
App registration (service principal) needs to be a member of a Security group
I am facing same issues. Could you please explain the solution? I dont understand how App registration can become a service principal? which service group should that be added to?
Can you please explian or direct how the service principal added to security group
Can you tell me, how exactly you have added the application security group.
In Roles and administrator i have added the below role, But still i am getting the error.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |