I have a flow setup to run a data factory pipeline. It is configured to use a service principal, which has access to the Data Factory.
When I trigger the flow via a powerapp, it successfully runs and triggers the pipeline. I can see from signin logs that the SP was used (my account doesnt have access to the data factory)
If I get another user (who is listed as owner on the flow) to open the powerapp, they are prompted to approve the connection to Data Factory with their credentials - not the service principal. If they approve, then press the button to trigger the pipeline, the flow fails saying their user account does not have access to data factory (accurate, as only the SP does).
The client 'xxxxxxxx@xxxxxxxxxxx' with object id 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx' does not have authorization to perform action 'Microsoft.DataFactory/factories/pipelines/CreateRun/action' over scope '/subscriptions/xxxxxxx-xxxx-xxxx-xxx-xxxxxxxxxxxx/resourcegroups/xxxxxx/providers/Microsoft.DataFactory/factories/xxxxx/pipelines/pipeline1' or the scope is invalid. If access was recently granted, please refresh your credentials.
Why is the SP Ive configured in the flow being ignored for other users?

Report
All responses (
Answers (