---
title: "Groups inventory"
---

When viewing the Groups inventory, use these keywords to ((search|search groups)) and filter groups. To search users, see the [users inventory](docs/search-query-users.md) keywords.

## Source {#groups-source}
Use `source:<name>` to search or filter by the name of the source that reported the groups.

```plaintext
source:ldap
```

## Name fields {#groups-names}
Use `<name_field>:<text>` to search or filter either of the two name fields in the group attributes.

The name fields you can search this way:
- `name`
- `display_name`

```plaintext
name:admin
```
```plaintext
display_name:"Domain Administrators"
```

## Description {#groups-description}
Use `description:<text>` to search the description field.

```plaintext
description:admin
```

## Users {#groups-users}
Use `user_id:<uuid>` to find groups with a specific member by the user's ID. The `user_id` field is the user's unique identifier, written as a UUID.
```plaintext
user_id:f8a26321-cbce-4fb5-a9ca-ffa809489dd5
```

## Email {#groups-emailaddr}
Use `email:<address>` to search for users by email address.
```plaintext
email:john@example.com
```

## First seen {#groups-firstSeen}
Use `first_seen_at:<date>` to search for users by when they were first seen in the organization. This field supports the [date comparison operators](docs/search-query-syntax.md#time-and-date-values).
```plaintext
first_seen_at:<1day
```

## Last seen {#groups-lastSeen}
Use `last_seen_at:<date>` to search for users by when they were last seen in the organization. This field supports the [date comparison operators](docs/search-query-syntax.md#time-and-date-values).
```plaintext
last_seen_at:>2years
```

## Site name or ID {#groups-site}
Use `site:<term>` to filter by site name or ID.
```plaintext
site:Primary
```
```plaintext
site:"Branch Office"
```
```plaintext
site:ad67d649-041b-439d-af59-f200053a8899
```

## Organization name or ID {#groups-organization}

Use `organization:<term>` to filter by organization name or ID.
```plaintext
organization:runZero
```
```plaintext
organization:"Temporary Project"
```
```plaintext
organization:f1c3ef6d-cb41-4d55-8887-6ed3cfb3d42d
```
