title: Embed Power BI reports for customers with service principal
body: <p>I am trying to follow the <a href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" rel="nofollow noreferrer">microsoft documentation</a> step by step. After doing all the steps till Step-4, for my Step-5 which is actually embedding, I am using postman to make queries to the api.</p>
  <p>My first query is to get access token which looks as follows:</p>
  <p><a href="https://i.stack.imgur.com/e0Viy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e0Viy.png" alt="enter image description here" /></a></p>
  <p>Once I get the access token from this request, I use this access token as my bearer for authorization, to then get groups as follows</p>
  <p><a href="https://i.stack.imgur.com/o1No1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o1No1.png" alt="enter image description here" /></a></p>
  <p>This request ends up giving me a 401 Unauthorized error.
  Any idea what am I doing wrong?
  Note that I registered my app already as mentioned in the step 1 of documentation <a href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" rel="nofollow noreferrer">here</a> and followed each step exactly as stated. After that, I also delegated all permissions (just to make sure I don't miss out on anything) and also made sure to grant consent (Grant all permissions).</p>