Forum Discussion
Add Connection Role Assignment to ServicePrincipalProfile type
I guess you are trying to add an SPN to a gateway connection by calling an API.
If yes, then please check whether you have sufficient permissions to do so, as per the documentation, these permissions are needed : "The caller must have UserWithReshare or higher role on the connection or be an Adminon the gateway that's bound to the connection."
Once you get permissions run the below call
API End point - POST call
https://api.powerbi.com/v2.0/myorg/me/gatewayClusters/<GatewayClusterID>/datasources/<ConnectionDI>/users
Body
{"identifier":"3d57a533-0719-4528-9d32-7f62c153acb8","datasourceAccessRight":"Read","emailAddress":null,"role":"User"
Connect on LinkedIn
|
I'm trying to add a ServicePrincipalProfile to a Databricks connection. The Service Principal I'm making the call with is an Owner on the connection.
- tharunkumarRTK11 months agoSuper User
As far as I know, this API works with on prem gateway connection only. It will work for Source Cloud Connections or SCC.
Not sure if there is any such API available to do so.