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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
SaiK
Helper I
Helper I

ODBC Custom Connector- SAML profile

Hello,
I want to create acustom ODBC connector that will use the SAML aws profile. 
The background is: I have temporary credentials which rotate hourly. In the odbc connector I am using athena driver and authentication type as IAM Profile. I am able to use this 'saml' IAM Profile inside power bi desktop successfully with the athena connector(I just write the dsn name and it works automatically). But this doesn't work in Power BI service because the gateway doesn't recognize the 'saml' profile. 
So I want to build a custom connector that would help me accomplish this. Basically in both, desktop and service when I click on SAML in the authentication options(I want the custom connector to display that option) it should automatically get authenticated in the backend. 
Please help out!

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @SaiK ,

I get the hesitation with custom connectors. But unfortunately power BI Service does not natively support IAM profiles or roles (like EC2/ECS/EKS instance roles) when using certified connectors such as Amazon Athena.
It requires AWS access key and secret key authentication — even with the built-in Athena connector.
Power BI Service does not run in AWS environment, so it cannot assume an IAM role from metadata.

 

In Power BI Desktop, the Athena ODBC driver reads your ~/.aws/credentials file and environment variables. It can automatically use the saml profile because it's running locally and can execute your credential_process or run AWS CLI/SSO flows.
Hope this helps!

 If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

View solution in original post

7 REPLIES 7
v-sdhruv
Community Support
Community Support

Hi @SaiK ,

I get the hesitation with custom connectors. But unfortunately power BI Service does not natively support IAM profiles or roles (like EC2/ECS/EKS instance roles) when using certified connectors such as Amazon Athena.
It requires AWS access key and secret key authentication — even with the built-in Athena connector.
Power BI Service does not run in AWS environment, so it cannot assume an IAM role from metadata.

 

In Power BI Desktop, the Athena ODBC driver reads your ~/.aws/credentials file and environment variables. It can automatically use the saml profile because it's running locally and can execute your credential_process or run AWS CLI/SSO flows.
Hope this helps!

 If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

Is there any other way to automate the process?
Now that I will be using the credentials, could you suggest a methodology to automate the process of renewing the credentials automatically in power bi service?

process automation and responsible credential policies (especially MFA) are fundamentally incompatible.

So, the best case scenario would be updating the credentials manually as and when required?

Okay Shruti! Thanks a lot for clearing the air!

tharunkumarRTK
Super User
Super User

@SaiK 

I think to look deeper into the connectivity and how authentication is working from the Power BI desktop to the athena source and validate the M code before building the connector. You can follow this learning path to know more about how you can create custom connector and you will also find some sample M code here 

 

https://learn.microsoft.com/en-us/power-query/creating-first-connector

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

Is it possible to use IAM profile in connectors in power bi service? I tried using it with the athena connector but it is having some issues. I don't want to go the custom connector way if there is a possiblity of using iam profiles direclty with certified connectors.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.