Forum Discussion
Embedding power ib report using client secret key
Hi,
i have successfully developed solution for embedding power bi report using native concept ( uanme, upwd, application/client ID) with the help powerbi.api.v2 sdk
now i want to solution for the same using server side concept (application/clientid, client secret key),
From this link embed pbi using service principal, i have tried that Access token with service principal concept, after creating powerbi client i am facing Operation returned an invalid status code 'Unauthorized' error while getting workspaces using clientPowerBI.Groups.GetGroups();
Could anyone guide me in correct path ?, Thanks in advance :)
2 Replies
- v-yuta-msftCommunity Support
This issue may caused by authentication issue. You can refer to troubleshooting tips in link below:
https://docs.microsoft.com/en-us/power-bi/developer/embedded-troubleshoot#authentication
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-yuta-msftCommunity Support
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao