Control access to SelectDB data
Use DataWorks Security Center to request and approve permissions for SelectDB tables, views, and table columns. This topic covers account associations, resource selection, requests, approvals, result verification, and troubleshooting.
Prerequisites
Before requesting permissions for a SelectDB user, a DataWorks tenant administrator or the Alibaba Cloud account owner must configure the SelectDB user associated with the RAM user or RAM role in Identity Credentials in Security Center. The association must correspond to the target instance. Approval is handled by users mapped as SelectDB administrators for this instance in Identity Credentials.
The request page loads available metadata by instance, Catalog, and database. Confirm that the target instance and objects appear in these lists before requesting permissions. If a resource is missing, check its metadata rather than selecting a different resource.
Permission workflow
The requester selects a table, a view, or columns within a table and submits a request. The approver mapped as a SelectDB administrator reviews and processes it. The requester then checks the approval history and any failure reason in My application form and uses the associated SelectDB user to perform the intended operation, verifying that the permissions took effect.
Open Data Access Control
Open Security Center in the DataWorks console. Under Data Platform Security, select Data Access Control. Open the Permission Application tab and select SelectDB.
Request permissions
Set Application Type to Table or View. Select Table for column permissions. Views provide only object-level permissions.
Select the target SelectDB instance, Catalog, and Database, then add the target tables or views. Changing the instance, Catalog, database, or request type clears previous object selections. Select the targets again after switching.
Select the object permissions. Table and view permissions include
select,load,alter,create,drop,grant; use the options available on the page. Tables also support column-levelselect. Expand a table to choose the columns to access. Do not select table-level select when you need access only to specific columns. Table-level select clears and disables the corresponding column-level selections.Confirm whether you are applying for the current account or on behalf of another user, and check that the principal has an associated SelectDB user. Enter a reason and click Apply for permission. Requests are permanent; neither the requester nor the approver can change the validity period.
After the submission success message, confirm that the request was created in My application form and track its approval progress. A successful submission does not mean that permissions have been granted.
Approve permissions
Open My approval tasks. On the Data Access Control tab, filter pending SelectDB requests.
Open Approval details for the request. Check the grantee, instance, Catalog, database, and table or view permissions. Expand a table to inspect its column permissions. Remove items that should not be granted to narrow the scope, retaining at least one approval object.
Enter approval comments and approve or reject the request. SelectDB requests are permanent, and approvers cannot change the validity period. Return to the task list to check the result.
View records and verify the result
In My application form, open the details to inspect resources, the grantee, approval history, and any failure reason. You can withdraw a request only while it is pending approval. Completed requests cannot be withdrawn. Permanent requests have no renewal option.
Approvers can set the task status to All in My approval tasks to view processed records. After approval, verify that the associated SelectDB user can perform the intended operation. If access fails, investigate the failure reason in the request details.
Notes and limitations
This workflow exposes only table and view permission requests. Column permissions apply only to tables. Materialized view and row-level permission requests are not available. The instance, Catalog, and database selections locate objects; they do not provide standalone grants at those levels.
Choose a Catalog returned by the page. Its presence does not guarantee authorization support for every external catalog. Use the permission options returned for the current instance.
Security Center currently does not provide SelectDB direct grants or permission audits. Withdrawing a pending request stops its approval process; it does not revoke SelectDB permissions that already took effect.
Troubleshooting
Symptom | What to do |
The instance, Catalog, or database list is empty | Check the resource scope and selected parent resource. Select an instance before a Catalog, and a Catalog before a database. Lists depend on available metadata, and loading failures can also produce an empty list. Reopen the page or reselect the parent resource to reload it. An empty list alone does not prove that the resource does not exist. |
The target table or view is missing | Check the instance, Catalog, database, and request type. Tables and views are loaded separately. Select the correct type and search again. Check object metadata if the target is still missing. |
Column-level select cannot be selected | Column permissions are available only for tables, not views. If table-level select is already selected, clear it before selecting specific columns to avoid granting broader access. |
Submission fails | Check the requested resources, required fields, and account association based on the error shown on the page. Form content is retained after failure. Before resubmitting, check My Requests for an existing equivalent request. |
Approval is complete but access still fails | Open the request details in My Requests and check the failure reason. Verify that the SelectDB user you are using matches the requester association configured for this instance. If the association is missing or the username is incorrect, ask the tenant administrator or Alibaba Cloud account owner to correct it in Identity Credentials, then submit a new request. |