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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerPlatform & SAP Co...
Power Apps
Unanswered

PowerPlatform & SAP Connection with User Handover

(0) ShareShare
ReportReport
Posted on by

We are planning a PowerPlatform to SAP connection and are wondering about the security of user authentication and credential / user information handover.

 

The goal is to request information from an onpremise SAP database in the context of the user of the PowerApp. 
The BTP is accessed with administrative user credentials.

 

We have the following scenario planned: 

LukasBaen_1-1689245041425.png

 

 

 

Handling the green "ZToken" is done with a separate flow "BTP Token request flow", so we do not have to store basic authentication information with in the "Main Flow" that requests the data from SAP. 

Obviously the setup with the "BTP Token request Flow" and storage in AKV is not 100% optimal, but we are fine with that. 


The main challenge we are facing / have questions about is the yellow text. How do we safely hand over the user information, of the user that is using the PowerApp, to the BTP, that can then use that user information within an RFC?

We have identified the following security risks - please add-on if you think there are others: 

 

  1. Can a user, that is using the PowerApp within a browser, somehow intercept the handover of user data from the PowerApp to the "Main Flow"? 
    Important note: we are not passing the user information from PowerApp to Main Flow with variable but use the default "PowerApps"-Trigger, that gets the triggering user information via Request Header.
  2. Assuming the handover / connection of data from step 1 is secure - Can a user then somehow intercept the traffic from the Main Flow to the BTP, to inject false user information, that would then be used in the RFC?

 

I think those are the two main concerns and we would appreciate any opinions.

 

I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,362 Super User 2025 Season 2 on at

    Hello,

     

    I hope you don't mind if I clarify. When you say Main Flow, are you referring to a Power Automate Flow? or are you saying from the Actual App, you are using an HTTP(S) Connector to talk to the Main Flow (whatever that is).

     

    If so

     

    For #1: Technically if you are sending unencrypted headers then yes, they might even just be able to use the Monitor (most likely) and or any other Web Traffic capture program to do it. I'd have to try it, to be 100%, but actually intercept and change it no, however if you are using an HTTP Triggered Flow, you just have to protect it so it can only talk to the back end services (power platform) and your good unless someone gets in and get hack into your back end

     

    For #2, this one is much less likely because the user may not even be running the flow (again if your talking about a Power Automate flow). They cannot do anything to it, see its run etc in the UI so no... you could be fine here.

     

    I'd have to review directly with you #1 to be 100%

     

    Cheers
    --------------------------------------------------------------------------------
    If I had answered your question, please mark your post as Solved
    If you like my post please give it a thumbs up
    Thanks
    Michael Gernaey MCT | MCSE | Expert | Ex-Microsoft
    https://gernaeysoftware.com

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard