has_role
- has_role(
principal: string | undefined,
role: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<HasRoleResponse>Parameters
- principal: string | undefined
Name of the user for which role membership is being checked. Must be an existing user. If blank, will use the current user.
- role: string
Name of role to check for membership.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<HasRoleResponse>
Promise<Types.HasRoleResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:11071
- principal: string | undefined
has_role_request
Checks if the specified user has the specified role.
Parameters
- request: HasRoleRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<HasRoleResponse>
Promise<Types.HasRoleResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:11046
- request: HasRoleRequest
Checks if the specified user has the specified role.