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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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