# Invite users

Source: https://docs.formance.com/v3.2/manage/identity/inviting-team

Stack: v3.2

## Invite a user

Send an invitation to join your organization:

curl

```bash
curl -X POST "$FORMANCE_API_URL/api/membership/organizations/<ORG_ID>/invitations" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com"
  }'
```

## Manage invitations

List pending invitations:

curl

```bash
curl -X GET "$FORMANCE_API_URL/api/membership/organizations/<ORG_ID>/invitations"
```

Cancel a pending invitation:

curl

```bash
curl -X DELETE "$FORMANCE_API_URL/api/membership/organizations/<ORG_ID>/invitations/<INVITATION_ID>"
```

## Accept or decline

Invited users receive an email with a link. The link opens a confirmation page. The invitation is accepted only when the user confirms it on that page. Opening the link does not accept the invitation.

The invitation is granted to the Formance Cloud account that uses the invited email address. If this account does not exist, the user must sign up and then confirm the invitation again.

Signing up or signing in does not accept pending invitations automatically, even when the email address matches.

Users can also accept or decline invitations programmatically:

curl

```bash
curl -X POST "$FORMANCE_API_URL/api/membership/me/invitations/<INVITATION_ID>/accept"
```

curl

```bash
curl -X POST "$FORMANCE_API_URL/api/membership/me/invitations/<INVITATION_ID>/reject"
```

After accepting, the user's permissions are determined by the [policies](https://docs.formance.com/v3.2/manage/identity/rbac) assigned to them at the organization and stack level.

An invitation is always accepted by a Formance Cloud account. A user signed in through an organization's SSO provider cannot accept invitations with that session. To add a user who only has an SSO account to another organization, contact Formance support.

## From the console

You can also manage invitations from the [Formance Console](https://console.formance.cloud) under your organization settings.
