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.
- In the navigation panel on the left, click
Service settings to open settings. - Go to the Service accounts tab. You will see a list of service accounts, along with their names, roles, descriptions, and IDs.
- To view a service account, click the row with its name.
Creating a service account
To add a service account:
-
In the left-hand panel, select
Service settings. -
Go to the Service accounts tab and click
Add service account. -
Fill out the fields as follows:
-
Click Add.
Editing a service account
To change the service account name or description:
- In the navigation panel on the left, click
Service settings to open settings. - Go to the Service accounts tab.
- To the right of the service account's name, click
→ Edit. - Update the service account name or description. Click Save.
Assigning a role
To change the service account role in DataLens:
- In the navigation panel on the left, click
Service settings to open settings. - Go to the Service accounts tab.
- To the right of the service account name, click
→ Assign role. - 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:
- In the navigation panel on the left, click
Service settings to open settings. - Go to the Service accounts tab.
- Click the service account row to open its page.
- Under Groups, click Add to group.
- 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:
-
In the navigation panel on the left, click
Service settings to open settings. -
Go to the Service accounts tab.
-
Click the service account row to open its page.
-
Under Private keys, click Create key.
-
In the window that opens, enter a name for the key and click Create.
-
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.
-
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:
- In the navigation panel on the left, click
Service settings to open settings. - Go to the Service accounts tab.
- To the right of the service account name, click
→ Delete. - Confirm the deletion.
You also can delete a service account on its page by clicking Delete service account under Administration.