# asc users

> asc users commands: list, invite, update and remove the people in an App Store Connect team, their roles and visible apps, and pending invitations.

Source: https://air.build/docs/cli/asc-users/

`asc users` manages the people in the connected Apple team's App Store Connect account: their roles, which apps they can see, and invitations that have not been accepted yet. Picking an Apple team, output, pagination, `--confirm` and exit codes work as described on the [asc](https://air.build/docs/cli/asc/) page; the flag tables below leave out `--output`, `--pretty`, `--limit`, `--next`, `--paginate` and the `--fields` / `--…-fields` flags, which are explained there.

Roles are App Store Connect's `UserRole` values: `ADMIN`, `FINANCE`, `ACCOUNT_HOLDER`, `SALES`, `MARKETING`, `APP_MANAGER`, `DEVELOPER`, `ACCESS_TO_REPORTS`, `CUSTOMER_SUPPORT`, `CREATE_APPS`, `CLOUD_MANAGED_DEVELOPER_ID`, `CLOUD_MANAGED_APP_DISTRIBUTION`, `GENERATE_INDIVIDUAL_KEYS`. `--roles` and `--role` take a comma-separated list of them.

## list

List users in App Store Connect.

| Flag | What it does | Default |
| --- | --- | --- |
| `--email` | Filter by email/username. | — |
| `--include` | Include related resources: visibleApps. | — |
| `--role` | Filter by role (comma-separated `UserRole` values). | — |
| `--sort` | Sort by one or more comma-separated expressions: username, -username, lastName, or -lastName. | — |
| `--visible-app` | Filter by visible app ID(s), comma-separated. | — |
| `--visible-apps-limit` | Maximum included visible apps (1-50). | `0` |

```sh
asc users list
```

## view

View a user by ID.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | User ID. Required. | — |
| `--include` | Include related resources: visibleApps. | — |

```sh
asc users view --id "USER_ID"
```

## update

Update a user.

`--roles` replaces the user's roles. `--visible-app` replaces the user's whole visible-app list, so it needs `--confirm`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Confirm replacing visible apps. Required with `--visible-app`. | `false` |
| `--id` | User ID. Required. | — |
| `--provisioning-allowed` | Grant or remove provisioning access: true or false (omit to keep current access while the new roles allow it). | — |
| `--roles` | Comma-separated `UserRole` values. Required. | — |
| `--visible-app` | Comma-separated app IDs for visible apps. | — |

```sh
asc users update --id "USER_ID" --roles "ADMIN"
```

## delete

Delete a user.

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Confirm deletion. Required. | `false` |
| `--id` | User ID. Required. | — |

```sh
asc users delete --id "USER_ID" --confirm
```

## invite

Invite a user.

Give either `--all-apps` or a `--visible-app` list for the apps the new user can see: one of them is required, and they can't be combined.

| Flag | What it does | Default |
| --- | --- | --- |
| `--all-apps` | Grant access to all apps. | `false` |
| `--email` | Email address to invite. Required. | — |
| `--first-name` | First name of the invitee. Required. | — |
| `--last-name` | Last name of the invitee. Required. | — |
| `--provisioning-allowed` | Grant provisioning access: true or false (omit for Apple's default). | — |
| `--roles` | Comma-separated `UserRole` values. Required. | — |
| `--visible-app` | Comma-separated app IDs for visible apps. | — |

```sh
asc users invite --email "user@example.com" --first-name "Jane" --last-name "Doe" --roles "ADMIN" --all-apps
```

## invites

Manage user invitations.

Invitations sent and not yet accepted.

### invites list

List user invitations.

No flags besides the shared ones.

```sh
asc users invites list
```

### invites view

View a user invitation by ID.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Invitation ID. Required. | — |

```sh
asc users invites view --id "INVITE_ID"
```

### invites revoke

Revoke a user invitation.

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Confirm revocation. Required. | `false` |
| `--id` | Invitation ID. Required. | — |

```sh
asc users invites revoke --id "INVITE_ID" --confirm
```

### invites visible-apps

List visible apps for a user invitation.

#### invites visible-apps list

List visible apps for a user invitation.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | Invitation ID. Required. | — |

```sh
asc users invites visible-apps list --id "INVITE_ID"
```

## visible-apps

View visible apps for a user.

The apps a user can see in App Store Connect.

### visible-apps list

List visible apps for a user.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | User ID. Required. | — |

```sh
asc users visible-apps list --id "USER_ID"
```

### visible-apps view

View visible app relationships for a user.

Prints the relationship linkages (app IDs only).

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | User ID. Required. | — |

```sh
asc users visible-apps view --id "USER_ID"
```
