Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Server Discussions

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

WebAPI user 'v2/workflows/{workflow_id}/jobs' Response 403 - Access Denied

gklas
6 - Meteoroid

I am using OAuth2 to queue a workflow for execution using the v2 endpoint 'v2/workflows/{workflow_id}/jobs'.  I can successfully queue and run workflows I am the owner, but I cannot queue workflows that I am not the owner even though they are public and have 'othersCanExecute' flag set to True.  I can successfully execute the non-owned workflows through the Gallery UI (This problem only pertains to the webapi calls).

How do I execute a workflow (and retrieve it's questions) for which I am not the owner using the webapi?

 

Test Owner:

'/v3/workflows/{workflow_id}'  Status 200

'v2/workflows/{workflow_id}/jobs'  Status 200

'v3/workflows/{workflow_id}/questions' Status 200

 

Test (Not WF Owner):

'/v3/workflows/{workflow_id}'  Status 200 <response below>  (Get workflow metadata)

'v2/workflows/{workflow_id}/jobs'  Status 403 Access Denied (Queue workflow)

'v3/workflows/{workflow_id}/questions' Status 403 Forbidden (Get Questions)

 

 

Retrieve Worfflow Response Message:

'{
"id": "____682db83f3ff055581dba",
"dateCreated": "2023-06-16T13:48:29.143Z",
"runCount": 1,
"versions": [
{
"versionId": "____682bf10f00003e001b15",
"versionNumber": 1,
"dateCreated": "2023-06-16T13:48:29.143Z",
"uploadSource": "Designer",
"uploadDate": "2023-06-16T13:48:29.145Z",
"packageWorkflowType": "App",
"published": true,
"comments": null,
"runDisabled": false,
"executionMode": "Standard",
"workflowCredentialType": "Specific",
"credentialId": "",
"hasPrivateDataExemption": false,
"othersMayDownload": true,
"othersCanViewHistory": true,
"details": {
"isAmp": true,
"fileName": "Test.yxmd",
"author": "",
"copyright": "",
"description": "",
"name": "Test",
"noOutputFilesMessage": "",
"outputMessage": "",
"url": "",
"urlText": ""
}
}
],
"name": "Test",
"ownerId": "____4d3a007911e39ebc6107",
"workerTag": "",
"districtTags": [],
"comments": "",
"isPublic": true,
"isReadyForMigration": false,
"publishedVersionId": "____682bf10f00003e001b15",
"othersMayDownload": true,
"othersCanViewHistory": true,
"othersCanExecute": true,
"executionMode": "Standard",
"hasPrivateDataExemption": false
}'

0 REPLIES 0