Forum Discussion

innocence84's avatar
innocence84
Helper I
3 years ago
Solved

Power BI Token Generation

Hi,

 

I generated a authorization token via postman. 

Then I used this token while calling the groups Rest API: (https://api.powerbi.com/v1.0/myorg/groups)


But the https://api.powerbi.com/v1.0/myorg/groups Rest API call just returns one row. However there are dozens of groups/workspaces in the Power BI environment. What may be the cause of the issue?

Thanks

4 Replies

  • Hi again,

    I checked Azure portal and Power BI admin portal. I could not find any settings that corresponds an app registration and a Power BI workspace.
    Is there any configurating for granting access to a Power BI workspace for the given Azure Active Directory app registration?  How should we model analysis like license consumption? 

     
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi innocence84 ,

    As I tested in my side, it can return all workpaces which the account can access to. 

    Could you please tell me whether the account info used in the below screenshot be granted to all workspaces? 

    Best Regards

    • innocence84's avatar
      innocence84
      Helper I

      thanks,

      I received the client_id and client_secret from Azure Active directory app registration.

      You asked: "Could you please tell me whether the account info used in the below screenshot be granted to all workspaces?"
      How can I grant the Azure Active Directory app registration for all workspaces?