The required permission is workspaces/integrationRuntimes/useCompute/action
(doc). The minimum role that allows this is 'Synapse Compute Operator'. 'Synapse Contributor' and 'Synapse Administrator' also work, but allows additional actions that you may not want your MSI to have.
Permissions required for REST API to run Synapse Job Definition Execute
Ryan Abbey
1,171
Reputation points
We are trying to execute a Synapse spark job definition from a REST API call (via Logic Apps using a Managed Identity) but receiving the error
The bearer token specified with the request is not a valid one. Please specify a valid bearer token.
However, if we run the "Get Job Definitions" or "Get Job Definitions by Workspace" (two GET operations), it works fine. This suggests insufficient permissions for the POST/execute option but unable to find any details to what we should set, anyone know what to try?
1 answer
Sort by: Most helpful
-
Samara Soucy - MSFT 5,051 Reputation points
2021-08-10T22:40:51.717+00:00