Managing service accounts in DataLens On-premises

In DataLens, service account management is performed by the administrator, i.e., user with the Admin (datalens.admin) role.

The administrator can create, delete, and edit service accounts, as well as create private keys for them.

  1. In the navigation panel on the left, click Service settings to open settings.
  2. Go to the Service accounts tab. You will see a list of service accounts, along with their names, roles, descriptions, and IDs.
  3. To view a service account, click the row with its name.

Creating a service account

To add a service account:

  1. In the left-hand panel, select Service settings.

  2. Go to the Service accounts tab and click Add service account.

  3. Fill out the fields as follows:

    • Name: Enter a name for the service account.
    • Description (optional). Enter a description for the service account.
    • Role. Select a service account role in DataLens. The default role is Visitor (datalens.visitor).
    • Group (optional). Click Select group to add your service account to a group.
  4. Click Add.

Editing a service account

To change the service account name or description:

  1. In the navigation panel on the left, click Service settings to open settings.
  2. Go to the Service accounts tab.
  3. To the right of the service account's name, click → Edit.
  4. Update the service account name or description. Click Save.

Assigning a role

To change the service account role in DataLens:

  1. In the navigation panel on the left, click Service settings to open settings.
  2. Go to the Service accounts tab.
  3. To the right of the service account name, click → Assign role.
  4. Select a role from the drop-down list and click Save.

You also can assign a role on the service account page by clicking Assign role under Access permissions.

Adding a service account to a group

To add a service account to a group:

  1. In the navigation panel on the left, click Service settings to open settings.
  2. Go to the Service accounts tab.
  3. Click the service account row to open its page.
  4. Under Groups, click Add to group.
  5. Select a group to add the service account to and click Save.

Adding a private key

Private keys are used for service account authentication in DataLens. To create a private key:

  1. In the navigation panel on the left, click Service settings to open settings.

  2. Go to the Service accounts tab.

  3. Click the service account row to open its page.

  4. Under Private keys, click Create key.

  5. In the window that opens, enter a name for the key and click Create.

  6. Save the private key by copying its contents or clicking Download key file.

    Alert

    After you close this window, the private key contents will no longer be available. There is no way to recover a lost key; you can only create a new one.

  7. Click Close.

Your new key will appear under Private keys. The list displays the name, ID, and creation date for each key.

Deleting a service account

To delete a service account:

  1. In the navigation panel on the left, click Service settings to open settings.
  2. Go to the Service accounts tab.
  3. To the right of the service account name, click → Delete.
  4. Confirm the deletion.

You also can delete a service account on its page by clicking Delete service account under Administration.