# REST Resource: buyers.clients.users

- [Resource: ClientUser](https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users#ClientUser)
  - [JSON representation](https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users#ClientUser.SCHEMA_REPRESENTATION)
- [State](https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users#State)
- [Methods](https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users#METHODS_SUMMARY)

## Resource: ClientUser

A user of a client who has restricted access to the Marketplace and certain other sections of the Authorized Buyers UI based on the role granted to the associated client.

| JSON representation |
|---|
| ``` { "name": string, "state": enum (`https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users#State`), "email": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource name of the client user. Format: `buyers/{accountId}/clients/{clientAccountId}/users/{userId}` |
| `state` | ``enum (`https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users#State`)`` Output only. The state of the client user. |
| `email` | `string` Required. The client user's email address that has to be unique across all users for the same client. |

## State

Valid user state.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | A placeholder for an undefined user state. |
| `INVITED` | A user who was created but hasn't accepted the invitation yet, not allowed to access the Authorized Buyers UI. |
| `ACTIVE` | A user that is currently active and allowed to access the Authorized Buyers UI. |
| `INACTIVE` | A user that is currently inactive and not allowed to access the Authorized Buyers UI. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users/activate` | Activates an existing client user. |
| ### `https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users/create` | Creates a new client user in "INVITED" state. |
| ### `https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users/deactivate` | Deactivates an existing client user. |
| ### `https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users/delete` | Deletes an existing client user. |
| ### `https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users/get` | Retrieves an existing client user. |
| ### `https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/v1/buyers.clients.users/list` | Lists all client users for a specified client. |