Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
CaptainMouette
New Member

Add mail enabled security group to datasource programatically

Hello all,

 

Is there a way to programatically add a mail enbaled security group to a datasource ? I sucessfully gave ConnectionCreator rights to such a group on a gateway through the Add-DataGatewayClusterUser cmdlet, but i cannot find a way to do so at the data source level.

 

Unfortunately, API (https://learn.microsoft.com/fr-fr/rest/api/power-bi/gateways/add-datasource-user#datasourceuseracces...) cannot do it : "Adding groups through the API is not supported. "

 

So can we automate this or does it have to be manual ?

Sub-question : If the entra group is ConnectionCreator on the gateway, can it use all the datasrouces of this gateway ? Or do we need to explicitly add it at the data source level ?

 

Thank you for your time !

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

I sucessfully gave ConnectionCreator rights to such a group on a gateway through the Add-DataGatewayClusterUser cmdlet

Why would you do that? This setting is exclusively for PowerPlatform, not for Power BI. In Power BI you would use Gateways - Add Datasource User - REST API (Power BI Power BI REST APIs) | Microsoft Learn  - with the limitation you already found.

 

Auditing concerns aside - If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @CaptainMouette,


Just following up to see if the solutions provided by community members were helpful in addressing the issue.

If one of the responses helped resolve your query, please consider marking it as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.

 

Best regards,
Prasanna Kumar

Anonymous
Not applicable

Hi @CaptainMouette,


Just checking in were you able to post your suggestion in the Ideas Forum as recommended?

Also, if your issue has been resolved in the meantime, we’d really appreciate it if you could share the solution here. It could be helpful for others facing similar challenges.

 

Warm regards,
Prasanna Kumar

 

Anonymous
Not applicable

Hi @CaptainMouette,

 

Thank you for reaching out to the Microsoft Fabric Forum Community, and thanks to @lbendlin  for the quick and helpful response.

You're absolutely right the API currently doesn’t support adding Entra ID groups directly to data sources. As @lbendlin  suggested, if this feature is important to you, please consider voting for an existing idea or submitting a new one using the link provided.

 

Thanks & Regards,

Prasanna Kumar

lbendlin
Super User
Super User

I sucessfully gave ConnectionCreator rights to such a group on a gateway through the Add-DataGatewayClusterUser cmdlet

Why would you do that? This setting is exclusively for PowerPlatform, not for Power BI. In Power BI you would use Gateways - Add Datasource User - REST API (Power BI Power BI REST APIs) | Microsoft Learn  - with the limitation you already found.

 

Auditing concerns aside - If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com

 

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.