In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

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