grant_role
- grant_role(
role: string,
member: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<GrantRoleResponse>Parameters
- role: string
Name of the role in which membership will be granted. Must be an existing role.
- member: string
Name of the user or role that will be granted membership in
role. Must be an existing user or role. Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantRoleResponse>
Promise<Types.GrantRoleResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10915
- role: string
grant_role_request
- grant_role_request(
request: GrantRoleRequest,
callback?: GPUdbCallback,
): Promise<GrantRoleResponse>Grants membership in a role to a user or role.
Parameters
- request: GrantRoleRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantRoleResponse>
Promise<Types.GrantRoleResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10890
- request: GrantRoleRequest
Grants membership in a role to a user or role.