Authentication Issue in Data Factory Pipeline

Copper Contributor

Hello,
Upon trying mentioned steps - I am getting the below error:

 

The client 'xxxx' with object id 'xxxx' does not have authorization to perform action Microsoft.DataFactory/factories/pipelines/action over scope /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.DataFactory/factories/xxxx/pipelines/xxxx or the scope is invalid. If access was recently granted, please refresh your credentials.

 

Here are few details of what I did:
1. Done registration of Application and creation of Certificate ( to get Client ID & Client Secret)
2. Got Bearer (Access) token by hitting https://login.microsoftonline.com/{{tenant_id}}/oauth2/token with all the details as mentioned in post.
3. Hitting the endpoint for Executing the Pipeline ( with all valid details as URL parameters)

 

Please note : I'm having currently Contributor Role in the Subscription.

 

I tried executing the createRun URL in Microsoft platform on signing-in (https://docs.microsoft.com/en-us/rest/api/datafactory/pipelines/create-run) with my subscription account and it seems to running fine over there, but only when I'm accessing through external call - I doubt that I am not able to generate full authorized token to perform createRun.

 

Can you please assist me on what could be the issue for the above mentioned error.

1 Reply
I'm facing same issue. Is it resolved now? Got any solution for this? Please reply with the solution