# Am newbie to Ansible

**URL:** <https://forum.ansible.com/t/am-newbie-to-ansible/29171>\
**Category:** Ansible Developer\
**Tags:** ubuntu\
**Created:** [December 1, 2018, 7:34am UTC](https://forum.ansible.com/t/am-newbie-to-ansible/29171 "2018-12-01T07:34:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed\_salman](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mohamed\_salman](https://forum.ansible.com/u/mohamed_salman)\
**Post date:** [December 1, 2018, 7:34am UTC](https://forum.ansible.com/t/am-newbie-to-ansible/29171/1 "2018-12-01T07:34:01Z")

</div>

Hi everyone, I have one doubt in ansible. I Am using ubuntu 16.04 machine. How to create a user ID into MS Office 365 AD using ansible win\_domain\_user module from my machine ?

---

<div class="post-metadata">

**Author:** ![Tchia04](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Post date:** [December 20, 2018, 8:12am UTC](https://forum.ansible.com/t/am-newbie-to-ansible/29171/2 "2018-12-20T08:12:40Z")

</div>

HI Mohamed,

If you run “ansible-doc win\_domain\_user” on a command line it will give you some example.

For example

- name: Ensure user bob is created and use custom credentials to create the user  
win\_domain\_user:  
name: bob  
firstname: Bob  
surname: Smith  
password: B0bP4ssw0rd  
state: present  
domain\_username: DOMAIN\admin-account  
domain\_password: SomePas2w0rd  
domain\_server: [domain@DOMAIN.COM](mailto:domain@DOMAIN.COM)
