web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Service Principal not ...
Power Automate
Answered

Service Principal not used

(0) ShareShare
ReportReport
Posted on by 41

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.

OB11_0-1682298373096.png

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).

 

OB11_0-1682298983953.png

 

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?

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @OB11 ,

     

    Because the connection is not shareable.

    https://learn.microsoft.com/zh-cn/connectors/azuredatafactory/#default

    vxiaochenmsft_0-1682305366808.png

    As a workaround, we can create 2 flows. The first flow is called from canvas app and the second flow is called from first flow.

    Canvas app-> first flow-> second flow(run the ADF using SP)

     

    vxiaochenmsft_1-1682305579194.png

    // second flow

     

    vxiaochenmsft_2-1682305628494.png

    // first flow

     

    Best Regards,

    Wearsky

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard