---
name: "ldapaddusertogroup"
section: "1"
platform: "linux"
package: "ldapscripts"
version: "2.0.8-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ldapaddusertogroup"
---

# ldapaddusertogroup(1)

adds a member to a group in LDAP.

## NAME

ldapaddusertogroup - adds a member to a group in LDAP.

## SYNOPSIS

**ldapaddusertogroup** \<username**\|**uid**\|**dn\> \<groupname**\|**gid\>

## OPTIONS

- **\<username \| uid \| dn\>**

  The name or the uid of the user to add. It can be a machine name (with an ending $) or a user name. When working with groupOfNames or groupOfUniqueNames group entries, a full DN can also be provided.

- **\<groupname \| gid\>**

  The name or the gid of the group that should welcome the new user.

## SEE ALSO

[ldapdeleteuserfromgroup(1)](/ldapdeleteuserfromgroup/1.md), [ldapsetprimarygroup(1)](/ldapsetprimarygroup/1.md), [ldapscripts(5)](/ldapscripts/5.md).

## AVAILABILITY

The ldapscripts are provided under the GNU General Public License v2 (see COPYING for more details). The latest version of the ldapscripts is available on : **http://contribs.martymac.org**

## BUGS

No bug known
