# Users

There are several ways to add a user to DataLens:

1. [Via DataLens](#dl-user): If the user is not planning to use other Yandex Cloud services. This method allows you to invite users with a Yandex account. If the user asks for other Yandex Cloud services later on, you can [assign them an additional role](../../organization/security/index.md#add-role) in the organization with the current DataLens instance.

1. [Via Yandex Identity Hub](#org-user): If the user is planning to use other Yandex Cloud services. In which case you can invite to the organization [Yandex account users](#passport-user) or add [federated](#federated-user) and [local](../../organization/operations/add-account.md#local) users.

{% note info %}

Users can be added or invited by the organization administrator (the `organization-manager.admin` role) or owner (the `organization-manager.organizations.owner` role).

{% endnote %}

### Adding a user via DataLens {#dl-user}

To add a user in DataLens:

1. Go to the DataLens [home page](https://datalens.ru/?skipPromo=true).
1. In the navigation panel on the left, click ![image](../../_assets/console-icons/sliders.svg) to open [settings](https://datalens.ru/settings).
1. Under **User management**, click **Invite users**.
1. Enter the email addresses of the users you want to invite, e.g., `login@yandex.com`.
1. Click **Send invitations**.

The user will receive a DataLens invitation email. Once the user accepts the invitation and selects the account for login, they can log in to your organization. The user will get the `datalens.creator` role in the organization with the current DataLens instance. To log in to DataLens, the user will need a [seat](../settings/seats.md).

![image](../../_assets/datalens/settings/users-settings.png)

### Adding a user via Yandex Identity Hub {#org-user}

#### Inviting a user with a Yandex account {#passport-user}

To invite a user with a Yandex account, follow [this guide](../../organization/operations/add-account.md#useraccount) from the Yandex Identity Hub documentation.

{% note warning %}

Users can only use DataLens if they have a role that enables access to the service. To ensure they have access, wait for them to accept the invitation to your organization and [assign](../../organization/security/index.md#add-role) them the `datalens.visitor` role.

{% endnote %}

#### Adding a federated user {#federated-user}

If you set up an [identity federation](../../organization/concepts/add-federation.md), follow [this guide](../../organization/operations/add-account.md#add-user-sso) to add a new federated user. After that, make sure to [assign](../../organization/security/index.md#add-role) them the `datalens.visitor` role.

A federated user can go directly to the dashboard of their choice by authenticating via a link in the following format:

```html
https://datalens.ru/<dashboard_ID>?__yc_federation_id=<federation_ID>
```