@Generated public class DbsqlPermissionsAPI extends Object
There are three levels of permission:
- `CAN_VIEW`: Allows read-only access
- `CAN_RUN`: Allows read access and run access (superset of `CAN_VIEW`)
- `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of `CAN_RUN`)
**Warning**: This API is deprecated. Please see the latest version of the Databricks SQL API. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
| Constructor and Description |
|---|
DbsqlPermissionsAPI(ApiClient apiClient)
Regular-use constructor
|
DbsqlPermissionsAPI(DbsqlPermissionsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
GetResponse |
get(GetDbsqlPermissionRequest request)
Gets a JSON representation of the access control list (ACL) for a specified object.
|
GetResponse |
get(ObjectTypePlural objectType,
String objectId) |
DbsqlPermissionsService |
impl() |
SetResponse |
set(SetRequest request)
Sets the access control list (ACL) for a specified object.
|
Success |
transferOwnership(TransferOwnershipRequest request)
Transfers ownership of a dashboard, query, or alert to an active user.
|
public DbsqlPermissionsAPI(ApiClient apiClient)
public DbsqlPermissionsAPI(DbsqlPermissionsService mock)
public GetResponse get(ObjectTypePlural objectType, String objectId)
public GetResponse get(GetDbsqlPermissionRequest request)
**Warning**: This API is deprecated. Please use :method:workspace/getpermissions instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
public SetResponse set(SetRequest request)
**Warning**: This API is deprecated. Please use :method:workspace/setpermissions instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
public Success transferOwnership(TransferOwnershipRequest request)
**Warning**: This API is deprecated. For queries and alerts, please use :method:queries/update and :method:alerts/update respectively instead. [Learn more]
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
public DbsqlPermissionsService impl()
Copyright © 2026. All rights reserved.