# add user AD - fail module/action "win\_domain\_user"

**URL:** <https://forum.ansible.com/t/add-user-ad-fail-module-action-win-domain-user/36422>\
**Category:** AWX Project\
**Tags:** azure, windows, vmware, aws, awx, galaxy-ng, kubernetes\
**Created:** [March 10, 2022, 7:03pm UTC](https://forum.ansible.com/t/add-user-ad-fail-module-action-win-domain-user/36422 "2022-03-10T19:03:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abel\_Laime](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Abel\_Laime](https://forum.ansible.com/u/Abel_Laime)\
**Post date:** [March 10, 2022, 7:03pm UTC](https://forum.ansible.com/t/add-user-ad-fail-module-action-win-domain-user/36422/1 "2022-03-10T19:03:24Z")

</div>

Hi,  
I am executing task to add users to local AD domain. I use community.windows task but it fails →

**_"ERROR! couldn’t resolve module/action '‘win\_domain\_user’. This often indicates a misspelling, missing collection, or incorrect module path._**

**_The error appears to be in ‘/runner/project/add\_user.yml’: line 6, column 7 …"_**

Playbook:

- name: Add User AD  
hosts: all

tasks:

- name: Create AD User  
win\_domain\_user:  
name: peter  
…

ENVIRONMENT

- AWX version: 20.0.0

- AWX install method: operator

- AWX deployment target: kubernetes - kubectl

- ansible [core 2.12.2.post0]  
config file = None  
configured module search path = [‘/home/runner/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible  
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections  
executable location = /usr/local/bin/ansible  
python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]  
jinja version = 2.10.3  
libyaml = True

- bash-4.4$ ansible-galaxy collection list

- repository: github CMS  
where is the error?  
thanks

---

<div class="post-metadata">

**Author:** ![Rebeccah\_Hunter](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Rebeccah\_Hunter](https://forum.ansible.com/u/Rebeccah_Hunter)\
**Post date:** [March 16, 2022, 7:23pm UTC](https://forum.ansible.com/t/add-user-ad-fail-module-action-win-domain-user/36422/2 "2022-03-16T19:23:27Z")

</div>

Hi there,

This looks like a general ansible question, not an AWX question. There is an ansible mailing list for future questions like this you might have ([https://groups.google.com/g/ansible-devel](https://groups.google.com/g/ansible-devel)).  
That being said, it looks like you need to get `win_domain_user` from the community.windows collection (more on that here: [https://docs.ansible.com/ansible/latest/collections/community/windows/win\_domain\_user\_module.html](https://docs.ansible.com/ansible/latest/collections/community/windows/win_domain_user_module.html)).

Hope that helps  
AWX Team
