# Creating users in VCD Unsupported API version

**URL:** <https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [July 21, 2020, 3:05am UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446 "2020-07-21T03:05:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [July 21, 2020, 3:05am UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/1 "2020-07-21T03:05:29Z")

</div>

Hi taem,

did you guys see this error ?

API version is 34

Unsupported API version. Received ‘{api\_version}’ but "\n ^\nSyntaxError: invalid syntax\n

TASK [vcd : VCD USER creation] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /data01/ansible/playbooks/roles/vcd/tasks/main.yml:1  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: root  
\<127.0.0.1\> EXEC /bin/sh -c ‘echo ~root && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo /root/.ansible/tmp`”&& mkdir /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734 && echo ansible-tmp-1595300587.72-9132-3554205710734=“`echo /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734`” ) && sleep 0’  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vcd\_user.py  
\<127.0.0.1\> PUT /root/.ansible/tmp/ansible-local-9052AXoSqK/tmpu50Pg7 TO /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py  
\<127.0.0.1\> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/ /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘/opt/rh/python27/root/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘rm -f -r /root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/ \> /dev/null 2\>&1 && sleep 0’  
The full traceback is:  
Traceback (most recent call last):  
File “/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py”, line 102, in   
\_ansiballz\_main()  
File “/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py”, line 94, in \_ansiballz\_main  
invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)  
File “/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py”, line 40, in invoke\_module  
runpy.run\_module(mod\_name=‘ansible.modules.cloud.vmware.vcd\_user’, init\_globals=None, run\_name=‘ **main** ’, alter\_sys=True)  
File “/opt/rh/python27/root/usr/lib64/python2.7/runpy.py”, line 188, in run\_module  
fname, loader, pkg\_name)  
File “/opt/rh/python27/root/usr/lib64/python2.7/runpy.py”, line 82, in \_run\_module\_code  
mod\_name, mod\_fname, mod\_loader, pkg\_name)  
File “/opt/rh/python27/root/usr/lib64/python2.7/runpy.py”, line 72, in \_run\_code  
exec code in run\_globals  
File “/tmp/ansible\_vcd\_user\_payload\_IAEjkU/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py”, line 161, in   
File “/opt/rh/python27/root/usr/lib/python2.7/site-packages/pyvcloud/vcd/org.py”, line 1845  
f"Unsupported API version. Received ‘{api\_version}’ but "  
^  
SyntaxError: invalid syntax  
fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py", line 102, in \n \_ansiballz\_main()\n File "/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py", line 94, in \_ansiballz\_main\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1595300587.72-9132-3554205710734/AnsiballZ\_vcd\_user.py", line 40, in invoke\_module\n runpy.run\_module(mod\_name=‘ansible.modules.cloud.vmware.vcd\_user’, init\_globals=None, run\_name=‘ **main** ’, alter\_sys=True)\n File "/opt/rh/python27/root/usr/lib64/python2.7/runpy.py", line 188, in run\_module\n fname, loader, pkg\_name)\n File "/opt/rh/python27/root/usr/lib64/python2.7/runpy.py", line 82, in \_run\_module\_code\n mod\_name, mod\_fname, mod\_loader, pkg\_name)\n File "/opt/rh/python27/root/usr/lib64/python2.7/runpy.py", line 72, in \_run\_code\n exec code in run\_globals\n File "/tmp/ansible\_vcd\_user\_payload\_IAEjkU/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py", line 161, in \n File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pyvcloud/vcd/org.py", line 1845\n f"Unsupported API version. Received ‘{api\_version}’ but "\n ^\nSyntaxError: invalid syntax\n”,  
“module\_stdout”: “”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1  
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

[root@s605141sl7vl402 ansible]#

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [July 21, 2020, 5:11am UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/2 "2020-07-21T05:11:07Z")

</div>

Hi Nagesh,

Where is this vcd\_user module coming from? Could you please also paste playbook?

---

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [July 21, 2020, 12:05pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/3 "2020-07-21T12:05:46Z")

</div>

Hi Abhijeeth,

please find my below playbook:

- name: VCD USER creation  
vcd\_user:  
user: “{{ vcd\_username }}”  
password: “{{ vcd\_password }}”  
host: “{{ vcd\_host }}”  
org: “{{ vcd\_org }}”  
api\_version: “{{ vcd\_api\_version }}”  
verify\_ssl\_certs: False  
username: “test”  
userpassword: “Svvs123!”  
role\_name: “Organization Administrator”  
state: “present”  
register: output

[root@s605141sl7vl402 ~]# ls -al /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/ | grep vcd  
-rw-r-----. 1 root root 10158 Jul 20 22:44 vcd\_catalog\_item.py  
-rw-r-----. 1 root root 7783 Jul 20 22:44 vcd\_catalog.py  
-rw-r-----. 1 root root 8162 Jul 20 22:44 vcd\_disk.py  
-rw-r-----. 1 root root 15602 Jul 20 22:44 vcd\_external\_network.py  
-rw-r-----. 1 root root 9046 Jul 20 22:44 vcd\_org.py  
-rw-r-----. 1 root root 15797 Jul 20 22:44 vcd\_org\_vdc.py  
-rw-r-----. 1 root root 7266 Jul 20 22:44 vcd\_roles.py  
-rw-r-----. 1 root root 9715 Jul 20 22:44 vcd\_user.py  
-rw-r-----. 1 root root 10399 Jul 20 22:44 vcd\_vapp\_network.py  
-rw-r-----. 1 root root 16803 Jul 20 22:44 vcd\_vapp.py  
-rw-r-----. 1 root root 10343 Jul 20 22:44 vcd\_vapp\_vm\_disk.py  
-rw-r-----. 1 root root 9665 Jul 20 22:44 vcd\_vapp\_vm\_nic.py  
-rw-r-----. 1 root root 17924 Jul 20 22:44 vcd\_vapp\_vm.py  
-rw-r-----. 1 root root 6485 Jul 20 22:44 vcd\_vapp\_vm\_snapshot.py  
-rw-r-----. 1 root root 20621 Jul 20 22:44 vcd\_vdc\_gateway.py  
-rw-r-----. 1 root root 17031 Jul 20 22:44 vcd\_vdc\_network.py  
[root@s605141sl7vl402 ~]#

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [July 21, 2020, 12:58pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/4 "2020-07-21T12:58:29Z")

</div>

Hi Nagesh,

After digging a bit, I found that these modules are coming from [https://github.com/vmware/ansible-module-vcloud-director](https://github.com/vmware/ansible-module-vcloud-director) and are based upon [pyvcloud](https://github.com/vmware/pyvcloud).

Pyvcloud [works](https://github.com/vmware/ansible-module-vcloud-director#prerequisites) on Python 3.6 and onwards, you are using Python 2.7. So you need to update to Python3.

---

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [July 21, 2020, 10:19pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/5 "2020-07-21T22:19:51Z")

</div>

Hi Abhijeet,

i have installed python 3.6 but ansible still showing 2.7, how to fix this ?

[root@s605141sl7vl402 ansible]# ansible --version  
ansible 2.9.9  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/site-packages/ansible  
executable location = /usr/bin/ansible  
python version = 2.7.17 (default, Nov 15 2019, 19:24:58) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]  
[root@s605141sl7vl402 ansible]# rpm -qa | grep python3  
python3-setuptools-39.2.0-10.el7.noarch  
python3-libs-3.6.8-13.el7.x86\_64  
python3-3.6.8-13.el7.x86\_64  
python3-pip-9.0.3-7.el7\_8.noarch  
[root@s605141sl7vl402 ansible]#

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [July 22, 2020, 9:25am UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/6 "2020-07-22T09:25:40Z")

</div>

Hi Nagesh,

Please set this value [https://docs.ansible.com/ansible/latest/reference\_appendices/config.html#interpreter-python](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#interpreter-python)

---

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [July 23, 2020, 7:38pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/7 "2020-07-23T19:38:18Z")

</div>

Hi Abhi,

python isue resolved but i am gettig below error, even i am providing right password:

TASK [vcd : VCD USER creation] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /data01/ansible/playbooks/roles/vcd/tasks/main.yml:1  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: root  
\<127.0.0.1\> EXEC /bin/sh -c ‘echo ~root && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo /root/.ansible/tmp`”&& mkdir /root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650 && echo ansible-tmp-1595532828.72-16298-259117612317650=“`echo /root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650`” ) && sleep 0’  
Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vcd\_user.py  
\<127.0.0.1\> PUT /root/.ansible/tmp/ansible-local-16218pbjHfY/tmpD2kGzF TO /root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py  
\<127.0.0.1\> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/ /root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘/usr/bin/python3.6 /root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py && sleep 0’  
\<127.0.0.1\> EXEC /bin/sh -c ‘rm -f -r /root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/ \> /dev/null 2\>&1 && sleep 0’  
The full traceback is:  
Traceback (most recent call last):  
File “/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/module\_utils/vcd.py”, line 45, in login  
File “/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py”, line 986, in set\_credentials  
raise VcdException(‘Login failed.’)  
pyvcloud.vcd.exceptions.VcdException: Login failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py”, line 102, in   
\_ansiballz\_main()  
File “/root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py”, line 94, in \_ansiballz\_main  
invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)  
File “/root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py”, line 40, in invoke\_module  
runpy.run\_module(mod\_name=‘ansible.modules.cloud.vmware.vcd\_user’, init\_globals=None, run\_name=‘ **main** ’, alter\_sys=True)  
File “/usr/lib64/python3.6/runpy.py”, line 205, in run\_module  
return \_run\_module\_code(code, init\_globals, run\_name, mod\_spec)  
File “/usr/lib64/python3.6/runpy.py”, line 96, in \_run\_module\_code  
mod\_name, mod\_spec, pkg\_name, script\_name)  
File “/usr/lib64/python3.6/runpy.py”, line 85, in \_run\_code  
exec(code, run\_globals)  
File “/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py”, line 311, in   
File “/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py”, line 290, in main  
File “/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py”, line 195, in **init**  
File “/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/module\_utils/vcd.py”, line 31, in **init**  
File “/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/module\_utils/vcd.py”, line 49, in login  
ansible.module\_utils.vcd\_errors.VCDLoginError: Login failed for user administrator to org nalab\_org  
fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/module\_utils/vcd.py", line 45, in login\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 986, in set\_credentials\n raise VcdException(‘Login failed.’)\npyvcloud.vcd.exceptions.VcdException: Login failed.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py", line 102, in \n \_ansiballz\_main()\n File "/root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py", line 94, in \_ansiballz\_main\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1595532828.72-16298-259117612317650/AnsiballZ\_vcd\_user.py", line 40, in invoke\_module\n runpy.run\_module(mod\_name=‘ansible.modules.cloud.vmware.vcd\_user’, init\_globals=None, run\_name=‘ **main** ’, alter\_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run\_module\n return \_run\_module\_code(code, init\_globals, run\_name, mod\_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in \_run\_module\_code\n mod\_name, mod\_spec, pkg\_name, script\_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in \_run\_code\n exec(code, run\_globals)\n File "/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py", line 311, in \n File "/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py", line 290, in main\n File "/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/modules/cloud/vmware/vcd\_user.py", line 195, in **init** \n File "/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/module\_utils/vcd.py", line 31, in **init** \n File "/tmp/ansible\_vcd\_user\_payload\_nm7l8qb6/ansible\_vcd\_user\_payload.zip/ansible/module\_utils/vcd.py", line 49, in login\nansible.module\_utils.vcd\_errors.VCDLoginError: Login failed for user administrator to org nalab\_org\n”,  
“module\_stdout”: “”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1  
}

My VAR file:

vcd\_host: 10.10.10.19  
vcd\_username: administrator  
vcd\_password: XXXXXXX  
vcd\_org: nalab\_org  
vcd\_api\_version: 34  
ansible\_python\_interpreter: ‘/usr/bin/python3.6’

Task file:

- name: VCD USER creation  
vcd\_user:  
host: “{{ vcd\_host }}”  
user: “{{ vcd\_username }}”  
password: “{{ vcd\_password }}”  
org: “{{ vcd\_org }}”  
api\_version: “{{ vcd\_api\_version }}”  
verify\_ssl\_certs: False  
username: “test”  
userpassword: “Svvs123!”  
role\_name: “Organization Administrator”  
state: “present”  
register: output

---

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [July 24, 2020, 4:29pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/8 "2020-07-24T16:29:45Z")

</div>

Hi Team,

anyone help me on this issue

what i am missing here?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 24, 2020, 4:52pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/9 "2020-07-24T16:52:38Z")

</div>

> Hi Team,
> 
> anyone help me on this issue
> 
> what i am missing here?

You missed the part that is called ‘reading the error’. I did do it and it looks like your credentials are wrong.

Either way, this module is a 3rd party module, so if you run into problems best to ask the vendor or their community for support.

---

<div class="post-metadata">

**Author:** ![Nagesh\_sheregar](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nagesh\_sheregar](https://forum.ansible.com/u/Nagesh_sheregar)\
**Post date:** [July 24, 2020, 4:55pm UTC](https://forum.ansible.com/t/creating-users-in-vcd-unsupported-api-version/33446/10 "2020-07-24T16:55:56Z")

</div>

same password is working, i am sure this is not password issue as i can login VCD using same password, anyway let me double check on vendor support

Thanks
