# What is correct syntax for user module?

**URL:** <https://forum.ansible.com/t/what-is-correct-syntax-for-user-module/16004>\
**Category:** Ansible Project\
**Created:** [August 21, 2014, 9:52pm UTC](https://forum.ansible.com/t/what-is-correct-syntax-for-user-module/16004 "2014-08-21T21:52:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Thacker](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Dave\_Thacker](https://forum.ansible.com/u/Dave_Thacker)\
**Post date:** [August 21, 2014, 9:52pm UTC](https://forum.ansible.com/t/what-is-correct-syntax-for-user-module/16004/1 "2014-08-21T21:52:39Z")

</div>

Hello!  
Beginner here. My goal is to use a simple play book to create a new user. I found this example in the modules pages at [ansible.com](http://ansible.com)

```auto
# Add the user 'johnd' with a specific uid and a primary group of 'admin'
- user: name=johnd comment="John Doe" uid=1040 group=admin

```

---

<div class="post-metadata">

**Author:** ![Matt\_Silverlock](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@Matt\_Silverlock](https://forum.ansible.com/u/Matt_Silverlock)\
**Post date:** [August 22, 2014, 12:06am UTC](https://forum.ansible.com/t/what-is-correct-syntax-for-user-module/16004/2 "2014-08-22T00:06:08Z")

</div>

```auto
description="Oracle Service Account"

```

```auto
You need to wrap this in quotes - because otherwise it sees "description=Oracle" and then two keys without values (Service, and Account).

```
