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

# ldapgid(1)

displays a group's list of IDs the way ldapid(1) does.

## NAME

ldapgid - displays a group's list of IDs the way [ldapid(1)](/ldapid/1.md) does.

## SYNOPSIS

**ldapgid** \[-P\]**\<groupname**\|**gid\>**

## DESCRIPTION

- The following is displayed : gid=gidNumber(cn) users(primary)=uidNumber(uid)\[,uidNumber(uid)...\] users(secondary)=uidNumber(uid)\[,uidNumber(uid)...\].

  - users(primary) lists users having the group declared as their primary group. users(secondary) lists users using the group as a secondary one.

  ## OPTIONS

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

  Group name or GID of a group to show information about.

- **\[-P\]**

  Display group information as a /etc/group file entry.

## SEE ALSO

[ldapid(1)](/ldapid/1.md), [lsldap(1)](/lsldap/1.md), [ldapfinger(1)](/ldapfinger/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.
