Forum Discussion
Individual credentials per object through on-premises gateway, is it possible?
Yes, it is possible to set the credentials for each dataset and data flow in Power BI Service to access the on-premises data source using the on-premises gateway. This can be done by configuring the data source credentials for each individual dataset and data flow.
To configure the data source credentials for a dataset or data flow, follow these steps:
- In Power BI Service, open the dataset or data flow you want to configure.
- Click on the "Data source settings" option in the "Settings" menu.
- In the "Data source credentials" section, select "Custom" as the authentication method.
- Enter the username and password for the account that will access the data source. If you want to use a Windows account, select "Windows" as the authentication method and enter the appropriate Windows credentials.
- Select the appropriate gateway and gateway connection for the data source.
- Save your changes.
By configuring the data source credentials in this way, each dataset and data flow will use its own set of credentials to access the data source, and you will be able to track who is accessing the data at the database level.
Creating one gateway connection per user is not necessary to achieve this. You can use a single gateway connection for all datasets and data flows, and simply configure the data source credentials for each individual dataset and data flow.
Thanks for replying!
I'm trying to find these mentioned settings, but I'm unavailable.
When creating an ODBC connection for the gateway, there are 3 options in the credentials part: Basic, Anynomous and Windows. No Custom.
- Windows we cannot use, since Vertica is not configured for it.
- Basic we can use, but that fixes that connection with a username.
- Anonymous we can use, but demands skipping the connection test. If skipping test is disabled, it gives us the error message "Unable to update this data source's credentials. Invalid connection credentials."
By using an anynomous, i.e. skipping the test, or basic authentication without filling the credentials and skipping the test, we get this message in the dataset:
Setting the credentials for the gateway connection, we get the same "admin has granted access.." and no option to set the credentials per dataset.
Do we need to somehow create the gateway connection in another way? Using REST Api to delete the credentials in the gateway to somehow force the dataset to ask for credentials?
Any more things that we can test?
Best regrads,
Sören