---
url: https://api-doc.aive.com/api/types/objects/user.md
---

A user account.

```graphql
type User implements Entity {
  id: ID!
  name: String!
  email: Email!
  hasAvatar: Boolean!
}
```

### Fields

#### [User.id](#id) ● [ID!](/api/types/scalars/id) non-null scalar {#id}

The unique identifier of the user.

#### [User.name](#name) ● [String!](/api/types/scalars/string) non-null scalar {#name}

The display name of the user.

#### [User.email](#email) ● [Email!](/api/types/scalars/email) non-null scalar {#email}

The email address of the user.

#### [User.hasAvatar](#has-avatar) ● [Boolean!](/api/types/scalars/boolean) non-null scalar {#has-avatar}

Whether the user has a custom avatar.

### Interfaces

#### [Entity](/api/types/interfaces/entity) interface

Entity represents an entity that may not be available to the current
caller. Multiple reasons may restrict this access, such as if the user has left
a company, or if the user used his GDPR right to delete his account.

Entity should be returned by the schema when accessing such a user cannot
be predicted by the caller. Any attempt to access a user should return a User
or throw an exception.

### Returned By

[`viewer`](/api/operations/queries/viewer)  query
