Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Server Discussions

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

API Execute Workflow not Passing my Credentials

deepsatism
5 - Atom

I published a workflow with my credentials to Gallery. When I go to gallery and run the workflow, it executes with out any issues. I have the access to file share paths and database my workflow is conencting too.

 

I am using API - https://<MyCompanyURL>/gallery/api/v1 to get all the details and passing my API Key and Secret for authentication. I am using the JS index file at shared y alteryx - https://gallery.alteryx.com/gallery/api-docs/samples/Alteryx-JavaScript-API-Sample.zip

 

I am able to execute all these methods without issue

 

https://<MyCompanyURL>/gallery/api/v1/jobs/<key>

https://<MyCompanyURL>/gallery/api/v1/workflows/<key>/jobs/

https://<MyCompanyURL>/gallery/api/v1/workflows/subscription/

 

Basically all Get mehtods work without problem. But when I try to execute the workflow using API, it fails because it runs as LocalAdmin of my Alteryx Server which obviously do not have access to DB and shared path.

 

Can anyone help me understand why my workflow runs whenI do it from gallery but not when I do it from API. Please note that I have publised this workflow to run as my credentials

 

 

1 REPLY 1
MichaelF
Alteryx Alumni (Retired)

Hi @deepsatism 

 

Unfortunately, the Gallery API cannot pass workflow credentials. You'll need to change either the Service Account or the Run As to the pass the proper credentials. 

 

There is an idea on community to add workflow credentials to the Gallery API, which you can add your comments here - https://community.alteryx.com/t5/Alteryx-Server-Ideas/Alteryx-Gallery-API-running-as-an-account/idi-...

 

Cheers,

Mike