diff --git a/docs/server/PermissionService.md b/docs/server/PermissionService.md index 4a84912..f7b7979 100644 --- a/docs/server/PermissionService.md +++ b/docs/server/PermissionService.md @@ -56,8 +56,24 @@ HttpResponse getAuthorization( String name) ``` +`getAuthorization` [finds the ID](#getResourceId) of the given `SecurableType` and `name`. + +`getAuthorization` [finds the ID of the current principal](../server-authorization/IdentityUtils.md#findPrincipalId). + `getAuthorization`...FIXME +--- + +`getAuthorization` is used when `PermissionService` is requested for the following authorizations: + +* [Catalog](#getCatalogAuthorization) +* [Function](#getFunctionAuthorization) +* [Metastore](#getMetastoreAuthorization) +* [RegisteredModel](#getRegisteredModelAuthorization) +* [Schema](#getSchemaAuthorization) +* [Table](#getTableAuthorization) +* [Volume](#getVolumeAuthorization) + ## Update Authorization { #updateAuthorization } ```java @@ -68,3 +84,16 @@ HttpResponse updateAuthorization( ``` `updateAuthorization`...FIXME + +## Get Metastore Authorization { #getMetastoreAuthorization } + +```java +HttpResponse getMetastoreAuthorization( + String name) +``` + +`getMetastoreAuthorization` [getAuthorization](#getAuthorization) of the `METASTORE` securable type with the given `name`. + +--- + +`getMetastoreAuthorization` is used to handle `GET /metastore/{name}` requests.