# User and Password while using the uri\_module

**URL:** <https://forum.ansible.com/t/user-and-password-while-using-the-uri-module/27543>\
**Category:** Ansible Project\
**Created:** [May 16, 2018, 2:05pm UTC](https://forum.ansible.com/t/user-and-password-while-using-the-uri-module/27543 "2018-05-16T14:05:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zenghuimin666](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@zenghuimin666](https://forum.ansible.com/u/zenghuimin666)\
**Post date:** [May 16, 2018, 2:05pm UTC](https://forum.ansible.com/t/user-and-password-while-using-the-uri-module/27543/1 "2018-05-16T14:05:58Z")

</div>

Hi everyone! Is there any possibility for me to create a user for an application, for instance Rocket.Chat, with ansible? I was using uri\_module.  
I tried to get the system info and login with ansible-playbook, which worked just fine for me. So basically I think it is possible to call the API with ansible.  
[![](https://lh3.googleusercontent.com/-o83BZgk9mMg/Wvw4IVb8A1I/AAAAAAAAAAY/_LH_6H5aFyE3LsL6dyK2XyE3bGgQ06tNQCLcBGAs/s320/asdf.PNG)](https://lh3.googleusercontent.com/-o83BZgk9mMg/Wvw4IVb8A1I/AAAAAAAAAAY/_LH_6H5aFyE3LsL6dyK2XyE3bGgQ06tNQCLcBGAs/s1600/asdf.PNG)

[![](https://lh3.googleusercontent.com/-ckqOgtXElwM/Wvw4N-EK9kI/AAAAAAAAAAc/mcDBuVnPDPMV7fCeqLd2iE94W3glIOJQACLcBGAs/s320/re.PNG)](https://lh3.googleusercontent.com/-ckqOgtXElwM/Wvw4N-EK9kI/AAAAAAAAAAc/mcDBuVnPDPMV7fCeqLd2iE94W3glIOJQACLcBGAs/s1600/re.PNG)

But once i tried to create a new user, error happened.

[I am not sure, if i understood the term “user” and “password” correctly. And i don’t know the value of these 2 parameters. Are they the coded token something or just the account information of Rocketchat?](https://lh3.googleusercontent.com/-4laYmK3-USE/Wvw2zZJpx1I/AAAAAAAAAAM/Bx0sJJLNBJga6th-mdY9MGZ72p_ql_aqACLcBGAs/s1600/asdf.PNG)

Moreover, there should be more parameters for the authentication process: ([https://rocket.chat/docs/developer-guides/rest-api/users/create/](https://rocket.chat/docs/developer-guides/rest-api/users/create/))

[![](https://lh3.googleusercontent.com/-hzkVr5ueOSo/Wvw6ZdCMWmI/AAAAAAAAAAs/vEzF9iABidIKSGlWHZcr3Jk8vjY3pioDwCLcBGAs/s400/wfsdg.PNG)](https://lh3.googleusercontent.com/-hzkVr5ueOSo/Wvw6ZdCMWmI/AAAAAAAAAAs/vEzF9iABidIKSGlWHZcr3Jk8vjY3pioDwCLcBGAs/s1600/wfsdg.PNG)

But I dont know where to put them? in the Body?

Thanks for your help!

best wishes

Huimin
