Log in to SAP with the user who started the job

Hello everyone,

I have a process with SAP. However, I want the robot to log into SAP with the respective user when starting. How can I ensure that when a user starts the process, the bot logs into SAP with the corresponding user credentials?

What are the possible solutions for this?

Thank you for your input!

Maybe you can share some more inputs.

getting out, which user started a Job (e.g. in Orchestrator…) was at least in the past a little bit hidden. But when digging into the audit logs via Rest API Calls some helping entries were derivable.

I have a process with five different users, for example, Martin, Markus, Max, Nils, and Anna.

When Martin starts the job in Orchestrator, the login credentials for SAP should be taken from Martin. If Markus starts the job, the bot should log into SAP using Markus’ credentials.

I am wondering how to implement this.
Option I: When starting, a window opens where the initiating user enters their username and password.
Option II: Use robot asset values → Is it possible to define multiple logins there and retrieve the respective login based on who starts the job?

for the first part: retrieval which user has started the Job
→ Use Swagger and analyse what is offered from the audit logs

for the credentials:

  • define different credential assets and select the right one by calculating its name dependend on the job starter user
  • e.g. Martin - Assetname: SAPCredentials_Martin

Thank you very much.
Is there a practical example for this? Or an explanation of how to proceed step by step?

For RnD and Prototypings we suggest working with Swagger

Ich schick gleich noch eine PM

KR
Peter

Hi @moritz.seiler

Pls follow the below link, might be helpful.