# How to add a ldap user to a local group ?

**URL:** <https://forum.ansible.com/t/how-to-add-a-ldap-user-to-a-local-group/35335>\
**Category:** Ansible Project\
**Created:** [June 11, 2021, 2:24pm UTC](https://forum.ansible.com/t/how-to-add-a-ldap-user-to-a-local-group/35335 "2021-06-11T14:24:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@Olivier](https://forum.ansible.com/u/Olivier)\
**Post date:** [June 11, 2021, 2:24pm UTC](https://forum.ansible.com/t/how-to-add-a-ldap-user-to-a-local-group/35335/1 "2021-06-11T14:24:49Z")

</div>

Hi,  
What I want is to add members to a local group on centos, but this members are not local but from an ldap (the access work fine with my ldap account on my linux system).  
I tried ansible.builtin.user but this module create each time local users, and I don"t want this user to be created on the system.  
And the module ansible.builtin.group doesn’t have an option to do this (it’s a shame no ?).

Regards.
