Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Scaling Multi-tenant Solutions using Service Principal Profiles / Datasource POSTGRESQL

Salut,
Je travaille sur un projet d'intégration de rapport POWER BI pour une application web. L'architecture est multi-tenant avec des bases de données postgreSQL.
J'ai du mal à savoir s'il est possible de mettre à jour les sources postgreSQL de l'ensemble de données. 
L'objectif est d'avoir un seul pbix, puis de mettre à jour l'ensemble de données pour chaque locataire.
 
Merci pour votre aide concernant ce sujet. 

2 Replies

  • Hi Anonymous ,

     

    This article explains how an ISV or any other Power BI Embedded app owner with many customers can use service principal profiles to map and manage each customer's data as part of their Power BI embed for your customers solution. Service principal profiles allow the ISV to build scalable applications that enable better customer data isolation and establish tighter security boundaries between customers. 

    And you can use Power BI REST API to refresh your dataset.

     

    For more details, please refer to:

    Use service principal profiles to manage customer data in multitenant apps - Power BI | Microsoft Learn 

    Datasets - REST API (Power BI Power BI REST APIs) | Microsoft Learn

     

    Best Regards,

    Jianbo Li

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi v-jianboli-msft

     

    Thank you for all this documentation and sorry for my unclear question. 

     

    The problem is : I can't pass the schema parameter like this : 

    pbiClient.Datasets.UpdateParametersInGroup(workspace.Id, datasetId, updateRequest) 

     

    Its because the shema parameter doesn't exist in the parameters of the datasource. 

    The only parameters that I can change are :

    - DataseName

    - DabaseServer.

     

    But in the BDD one tenant = one schema. 

     

    Do you know how I can update schema parameters with PowerBI API ?