---
sidebar:
  hidden: true
title: roboto.domain.users.record
---
## Module Contents

### UserRecord

```python
class roboto.domain.users.record.UserRecord(/, **data: Any)
```

`from roboto import UserRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/users/record.py#L17-L59)

Bases: `pydantic.BaseModel`

Data record of a user, as the Roboto API returns it.

A user is a person, or a service user that Roboto runs automated work as, who acts in the organizations it belongs to. [`User`](/docs/reference/python-sdk/roboto/domain/users/user#roboto.domain.users.user.User) wraps this record with methods that act on the user, and exposes it as [`record`](/docs/reference/python-sdk/roboto/domain/users/user#roboto.domain.users.user.User.record).

**Parameters**

- **data** (`Any`)

**Attributes**

- **UserRecord.is_service_user** (`bool`) = `False`: Whether the user is a service user: a non-human user that Roboto runs an organization's automated work as.

  For example, a trigger invokes its action as a service user of the trigger's organization, so the invocation has that service user's access.

- **UserRecord.is_system_user** (`bool | None`) = `False`: Whether the user is Roboto staff, such as a Roboto administrator.

- **UserRecord.name** (`str | None`) = `None`: Human-readable display name of the user, or `None` if it has none.

- **UserRecord.notification_channels_enabled** (`dict[roboto.notifications.NotificationChannel, bool]`) = `None`: Whether each notification channel is enabled for the user, keyed by channel. An absent channel is disabled.

- **UserRecord.notification_types_enabled** (`dict[roboto.notifications.NotificationType, bool]`) = `None`: Whether each notification type is enabled for the user, keyed by type. An absent type is disabled.

- **UserRecord.picture_url** (`str | None`) = `None`: URL of the user's profile picture, or `None` if it has none.

- **UserRecord.user_id** (`str`): Unique ID of the user, which for a person is their email address in lowercase.

#### UserRecord.is_comment_mentions_enabled()

```python
def is_comment_mentions_enabled() -> bool
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/users/record.py#L54-L59)

Return whether the user has notifications enabled for comments that mention them.

Roboto emails the user about such a comment only when `is_email_notifications_enabled` also returns `True`.

**Returns**

- `bool`

#### UserRecord.is_email_notifications_enabled()

```python
def is_email_notifications_enabled() -> bool
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/users/record.py#L50-L52)

Return whether the user has the email notification channel enabled.

**Returns**

- `bool`
