> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bronto.io/llms.txt
> Use this file to discover all available pages before exploring further.

# bronto groups

> Manage groups

Manage groups

<Tip>
  * **Platform docs:** [docs.bronto.io/Account-Management/Access-Control](https://docs.bronto.io/Account-Management/Access-Control)
  * **API reference:** [docs.bronto.io/api-reference/groups/list-all-user-groups-in-the-organization](https://docs.bronto.io/api-reference/groups/list-all-user-groups-in-the-organization)
</Tip>

```sh theme={"dark"}
bronto groups <command> [flags]
```

#### Subcommands

| Command | Description |
| - | - |
| [`bronto groups add-members`](/cli/reference/commands/groups#bronto-groups-add-members) | Add users or groups to a group |
| [`bronto groups create`](/cli/reference/commands/groups#bronto-groups-create) | Create a group |
| [`bronto groups delete`](/cli/reference/commands/groups#bronto-groups-delete) | Delete a group |
| [`bronto groups get`](/cli/reference/commands/groups#bronto-groups-get) | Get a group by ID |
| [`bronto groups list`](/cli/reference/commands/groups#bronto-groups-list) | List groups |
| [`bronto groups members`](/cli/reference/commands/groups#bronto-groups-members) | List the members of a group |
| [`bronto groups remove-members`](/cli/reference/commands/groups#bronto-groups-remove-members) | Remove users or groups from a group |
| [`bronto groups update`](/cli/reference/commands/groups#bronto-groups-update) | Update a group |

Also accepts the [global flags](/cli/reference/commands/global-flags).

## bronto groups add-members

Add users or groups to a group

```sh theme={"dark"}
bronto groups add-members <group> [--users <id|email,...>] [--groups <id|name,...>] [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--groups` | | strings | | groups to add, by id or name (comma-separated or repeated) |
| `--users` | | strings | | users to add, by id or email (comma-separated or repeated) |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups add-members oncall --users ada@example.com,grace@example.com
bronto groups add-members oncall --groups sre
```

## bronto groups create

Create a group

```sh theme={"dark"}
bronto groups create [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--field` | `-f` | stringArray | | request body field as key=value; values parse as JSON when possible (repeatable) |
| `--input` | | string | | read the request body from a file, or - for stdin |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups create -f name=<name>
bronto groups create --input body.json
```

## bronto groups delete

Delete a group

```sh theme={"dark"}
bronto groups delete <id> [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--yes` | | bool | | skip the confirmation prompt |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups delete <id> --yes
```

## bronto groups get

Get a group by ID

```sh theme={"dark"}
bronto groups get <id> [flags]
```

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups get <id>
```

## bronto groups list

List groups

```sh theme={"dark"}
bronto groups list [flags]
```

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups list
```

## bronto groups members

List the members of a group

```sh theme={"dark"}
bronto groups members <id> [flags]
```

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups members <id>
```

## bronto groups remove-members

Remove users or groups from a group

```sh theme={"dark"}
bronto groups remove-members <group> [--users <id|email,...>] [--groups <id|name,...>] [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--groups` | | strings | | groups to remove, by id or name (comma-separated or repeated) |
| `--users` | | strings | | users to remove, by id or email (comma-separated or repeated) |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups remove-members oncall --users ada@example.com,grace@example.com
bronto groups remove-members oncall --groups sre
```

## bronto groups update

Update a group

```sh theme={"dark"}
bronto groups update <id> [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--field` | `-f` | stringArray | | request body field as key=value; values parse as JSON when possible (repeatable) |
| `--input` | | string | | read the request body from a file, or - for stdin |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto groups update <id> -f name=<name>
bronto groups update <id> --input body.json
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.