---
title: "ezgh iam users invite"
description: "Invite someone into the organization; prints the accept link."
---

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

# ezgh iam users invite

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh iam users invite --email <email> [--group g]… [--policy p]… [--expires-in-days n] [flags]
```

Invite someone into the organization, with the groups and policies they get when they accept. No email is sent: share the accept link (printed on stdout), or they'll see the invitation when they sign in, or with `ezgh invitations list`. It matches their verified email, and expires in 7 days unless `--expires-in-days` (1 to 30) says otherwise.

Part of [`ezgh iam users`](/cli/reference/iam-users).

## Examples

```sh
ezgh iam users invite --email bob@acme.test --group ops --policy ReadOnlyAccess
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--email` | string |  | their email address |
| `--expires-in-days` | int |  | expire after 1 to 30 days (default 7) |
| `--group` | strings, comma-separated or repeated |  | a group they join on accepting (repeat, or comma-separate) |
| `--policy` | strings, comma-separated or repeated |  | a policy attached to them on accepting (repeat, or comma-separate) |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/iam-users-invite/index.mdx
