Forum Discussion

RyanBentham's avatar
RyanBentham
Kudo Kingpin
3 years ago
Solved

Embedded - Accessing an external workspace

I'm currently building a PBI embedded solution and hoping someone could share some experience please.   I'm using the 'app owns data' approach and currently connect to a number of workspaces within...
  • jaweher899's avatar
    jaweher899
    3 years ago

    To connect to a customer's workspace via the Power BI REST API, your app would need to be added as a guest to the customer's tenant. Once the app has been added as a guest, you can use the OAuth 2.0 client credentials grant type for authentication. You would need to obtain the necessary client ID and secret from the customer's tenant. This information can be obtained from the Azure Active Directory in the customer's tenant, and is used to obtain an access token which is then used for making API requests. The customer would need to provide you with these credentials in order for your app to be able to access their workspace via the Power BI REST API.