Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

How to pull runtime user detail with in workflow and pass it to API

mahendra0393
7 - Meteor

Hi,

 

I have created an app where user is selecting few inputs and api operation to be run api post and put through download tool to create resources.

 

I'm trying to pull queued job details from AlteryxService DB As_Queue table and filtering the running job by workflow name and status then fetching the user details from AlteryxGallery DB user table based on user id. How can Integrate this process with my existing workflow.

 

My requiremnet is that whenever users run app from gallery there details needs to be pass to post or put api header while running the workflow to record audit logs of all the operations they're making through APIs.

1 REPLY 1
gawa
16 - Nebula
16 - Nebula

If you want to output who is running the workflow as a part of result of that workflow, you can utilize the Run Command tool and run command 'whoami'.

'whoami' command outputs the name of user(account) who is actually running that workflow in Alteryx Server. This is basically same as Credential set when starting job. If your Server participates in some domain(like Active Directory), it shows DOMAIN\USERNAME.