Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hippopotamus
Regular Visitor

401 Unauthorized Error while retrieving report embed details

Hi,

 

I follow this document create nodejs embed powerbi

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=node-js

But Authorization was not successful

 

request message:

Error Details:

Error while retrieving report embed details

Unauthorized

 

I'm not sure which step or setting I have missed...

Thanks for your help !

1 ACCEPTED SOLUTION

@V-lianl-msft 

 

I found out the problem

Because I use Specifit security groups (Recommended) and my adminstrator told me my account is in the group.
When I changed to The entire organization, the embed is work.

developer-settings

Thanks for your help 

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @hippopotamus ,

 

It is suggested that check the step 7:

In the Access pane, depending on which authentication method you're using, copy the service principal or master user to the Enter email address text box.

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=node-js... 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I tried it multiple times with Name of my Registered Application, Application Id, Object Id ... constantly see "You can't use invalid or duplicate emails."  it is only allowing addition of a User / Group or few email addresses.

@V-lianl-msft 

 

I found out the problem

Because I use Specifit security groups (Recommended) and my adminstrator told me my account is in the group.
When I changed to The entire organization, the embed is work.

developer-settings

Thanks for your help 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.