# Node credential not exported in workflow with AWX CLI

**URL:** <https://forum.ansible.com/t/node-credential-not-exported-in-workflow-with-awx-cli/35956>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [November 3, 2021, 10:14am UTC](https://forum.ansible.com/t/node-credential-not-exported-in-workflow-with-awx-cli/35956 "2021-11-03T10:14:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronan](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ronan](https://forum.ansible.com/u/Ronan)\
**Post date:** [November 3, 2021, 10:14am UTC](https://forum.ansible.com/t/node-credential-not-exported-in-workflow-with-awx-cli/35956/1 "2021-11-03T10:14:47Z")

</div>

Hi all,

I have a CD workflow that export objects from one AWX (19.3.0) instance to another.  
I’ve notice that one property is not present when exporting a workflow with AWX CLI.

For example I have a simple workflow:

 ![Screenshot 2021-11-03 110454.png](https://us1.discourse-cdn.com/ansible/original/2X/d/d27982247ac41555e983bf8a497b42390ec2a17f.png)

The service\_adduser is decribed as folow:

 ![Screenshot 2021-11-03 110537.png](https://us1.discourse-cdn.com/ansible/original/2X/8/80b44e31f62811a0895a659f626e7ecee0d8f78f.png)

Notice the credential that is associated: SSH Cloudmgr.  
Now, when I export the object with awx-cli , that credential is not present:

{  
“workflow\_job\_templates”: [  
{  
“name”: “workflow\_test”,  
“description”: “”,  
“extra\_vars”: “—”,  
“organization”: null,  
“survey\_enabled”: false,  
“allow\_simultaneous”: false,  
“ask\_variables\_on\_launch”: false,  
“inventory”: null,  
“limit”: “”,  
“scm\_branch”: “”,  
“ask\_inventory\_on\_launch”: false,  
“ask\_scm\_branch\_on\_launch”: false,  
“ask\_limit\_on\_launch”: false,  
“webhook\_credential”: null,  
“related”: {  
“schedules”: ,  
“workflow\_nodes”: [  
{  
“extra\_data”: {  
“vm\_user\_new”: “user”  
},  
“scm\_branch”: null,  
“job\_type”: null,  
“job\_tags”: null,  
“skip\_tags”: null,  
“limit”: null,  
“diff\_mode”: null,  
“verbosity”: null,  
“all\_parents\_must\_converge”: false,  
“identifier”: “5971f334-f610-4449-9a25-a06177cb7ec2”,  
“workflow\_job\_template”: {  
“organization”: null,  
“name”: “workflow\_test”,  
“type”: “workflow\_job\_template”  
},  
“related”: {  
“credentials”: ,  
“success\_nodes”: ,  
“failure\_nodes”: ,  
“always\_nodes”:   
},  
“natural\_key”: {  
“workflow\_job\_template”: {  
“organization”: null,  
“name”: “workflow\_test”,  
“type”: “workflow\_job\_template”  
},  
“identifier”: “5971f334-f610-4449-9a25-a06177cb7ec2”,  
“type”: “workflow\_job\_template\_node”  
}  
}  
],  
“labels”: ,  
“notification\_templates\_started”: ,  
“notification\_templates\_success”: ,  
“notification\_templates\_error”: ,  
“notification\_templates\_approvals”: ,  
“survey\_spec”: {}  
},  
“natural\_key”: {  
“organization”: null,  
“name”: “workflow\_test”,  
“type”: “workflow\_job\_template”  
}  
}  
]  
}

When I reimport that workflow, it’s the default credential of the job template that is used, which is not the desired result.  
Am I missing something ?

---

<div class="post-metadata">

**Author:** ![Ronan](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ronan](https://forum.ansible.com/u/Ronan)\
**Post date:** [November 12, 2021, 5:34pm UTC](https://forum.ansible.com/t/node-credential-not-exported-in-workflow-with-awx-cli/35956/2 "2021-11-12T17:34:12Z")

</div>

Answering my onw question.  
Credentials are indeed exported in workflow since awxcli. Thing is, the user used to do export must have sufficient privilege on that credential otherwise that property is silently discarded and not included in the export.
