Grant permissions to a service account
This page describes how to grant permissions to a service account for a cluster instance.
Background information
If you need assistance from Alibaba Cloud support engineers, you can use the service account authorization feature. This feature lets you grant permissions to support engineers, such as viewing configurations, querying indexes, and accessing data. The support engineers can then operate on your cluster within the specified time and permission scope to provide technical support.
Prerequisites
When a cluster instance is in the Running state, you can grant service account authorization to the cluster.
Service account authorization is not supported for Standard Edition (Key-Value) clusters.
Procedure
Log on to the OceanBase Management Console .
In the navigation pane on the left, click Instance List. Select the target cluster instance to open its Cluster Instance Workbench page.
In the navigation pane on the left, click Security Settings.
On the Service Account Authorization tab, grant the required permissions and set an expiration time. You can grant one or more of the following permissions: Query Permission, SQL Emergency, Database Permission, Session Emergency, and Configuration Permission.
Click the switch under Enable Permission.

Permission
Description
Query Permission
Lets Alibaba Cloud support engineers view your database indexes and views.
SQL Emergency
Lets Alibaba Cloud support engineers perform operations on SQL, such as outline binding and throttling.
Database permissions
Lets Alibaba Cloud support engineers execute data query commands, such as SELECT, in all tenants of the cluster.
Session Emergency
Once authorized, Alibaba Cloud technical support can terminate database sessions in an emergency.
Configuration Permission
After you grant authorization, the Alibaba Cloud helpdesk can view and modify cluster and tenant configurations.
In the Set Authorization Expiration Time dialog box, set a single expiration time for all granted permissions.
NoteIf you grant multiple permissions, they all share the same expiration time. This time is set when you grant the first permission.

After the authorization is complete, you can disable it at any time by clicking the switch under Enable Permission.