has_permission
- has_permission(
principal: string | undefined,
object: string,
object_type: string,
permission: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<HasPermissionResponse>Parameters
- principal: string | undefined
Name of the user for which the permission is being checked. Must be an existing user. If blank, will use the current user.
- object: string
Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible.
- object_type: string
The type of object being checked.
- permission: string
Permission to check for.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<HasPermissionResponse>
Promise<Types.HasPermissionResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10971
- principal: string | undefined
has_permission_request
- has_permission_request(
request: HasPermissionRequest,
callback?: GPUdbCallback,
): Promise<HasPermissionResponse>Checks if the specified user has the specified permission on the specified object.
Parameters
- request: HasPermissionRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<HasPermissionResponse>
Promise<Types.HasPermissionResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10941
- request: HasPermissionRequest
Checks if the specified user has the specified permission on the specified object.