Forum Discussion
s8nRrG
9 years agoRegular Visitor
403 Forbidden error occured when using REST API
I'm developing API that allows to send data directly to Power BI. There must not be any user's interaction to authenticate the request. The user can set only clientId and clientSecret values. But all...
reuben_sqlbi
3 years agoNew Member
Just to say - thank you for this. I downloaded the demos, ran the the .net Core version in vscode.. was able to trace the code, inspect the auth response ... and figure out what I was doing wrong... which was two different things;
1. I was sending a redirect URL .. so MSAL was using the public client pattern
2. I'm using an spn with Power BI Embedded, which has admin at workspace level... so I can't query the tenant level rest api's.
Having a working embedded demo gave me the leg up I needed.
MalatMIB
2 years agoNew Member
Hi Reuben, I know this is an older thread but... I'm also doing point 2 here, my spn also only has workspace admin - do you know if I need to give more permission away for this to work? Thanks.