Forum Discussion

hippopotamus's avatar
hippopotamus
Regular Visitor
4 years ago
Solved

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 !

  • hippopotamus's avatar
    hippopotamus
    4 years ago

    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.

    Thanks for your help 

3 Replies

  • V-lianl-msft's avatar
    V-lianl-msft
    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#step-7---enable-workspace-access 


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

    • hippopotamus's avatar
      hippopotamus
      Regular Visitor

      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.

      Thanks for your help 

    • stelapolu's avatar
      stelapolu
      New Member

      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.