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 / How can I access CDS d...
Power Automate
Unanswered

How can I access CDS data on behalf of an user ?

(0) ShareShare
ReportReport
Posted on by 9

Hi,

 

I am building a flow that uses the CDS connector to access entities in the HR (onboard) domain.

The trigger for the flow is an HTTP Request 

How can I make sure that the connection to the data is "established" with the end-users credentials ?

And if this is not possible , how can I create a CDS "query" that filters the results based on an e-mail address or Office365 userid ?

 

Should the HTTP Request be made with certain cookies/tokens ?

 

Below a simplyfied version of the flow that shows the challenge.

The query (red arrow) here has a hard coded e-mail address.

 

 

MSFTFlowAndCredentialsCDS.PNG

 

We want the query to be dynamic, the field does not have to be emailPrimary, any user identification field should be fine.

 

My question is, should we treat Flow as a classic frontend application to a database. In other words the application can access all data and the responsibility to only get data for a particular user is within the Flow ?

 

If yes, than I can request in the input (HTTP trigger) of this flow to supply this e-mail address.

Downside is, we need to protect this endpoint because in this case anyone can call the HTTP Endpoint and supply any e-mail address.

 

If no, that would mean the Flow is executed with the end-user credentials. Which would mean the access control is handled by CDS itself. As a result I don't need a filter, assuming users will only access their own data.

But than my question is, how do I configure my Flow/HTTP Endpoint to have the caller authenticate her/him self ?

 

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @ MichelJonker,

    Could you please share a screenshot of the configuration of your flow?

    Could you please share more details about the CDS entity?

    Could you please explain more details about your requirement?

     

    Please share more details so we could try to provide a proper workaround for you.

     

    Regards,
    Alice Zhang

  • MichelJonker Profile Picture
    9 on at

    edited the original post

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard