Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

AccessUnauthorized on Mashup engine using Gateways - Update Datasource API

Hi, I'm using the Gateways - Update Datasource API to programmatically change the credentials of a dataset that connects to a PBI dataflow.   I use the following call:       PATCH https://api...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Finally got an answer from the PBI product group.

    The correct payload to use (totally undocumented) is:

     

     

    {
      "credentialDetails": {
        "credentialType": "OAuth2",
        "encryptedConnection": "Encrypted",
        "encryptionAlgorithm": "None",
        "privacyLevel": "Organizational",
        "useCallerAADIdentity": true
      }
    }

     

     

    I call it using a password grant token in the Authorization Bearer.

    This undocumented payload does not require a token in the payload thanks to the property:

     

    "useCallerAADIdentity": true