Skip to main content
  • Grant user or role the specified permission on the specified object.

    Parameters

    • principal: string | undefined

      Name of the user or role for which the permission is being granted. Must be an existing user or role.

    • object: string

      Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible.

    • object_type: string

      The type of object being granted to.

    • permission: string

      Permission being granted.

    • Optionaloptions: Record<string, string>

      Optional parameters.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<GrantPermissionResponse>

    Promise<Types.GrantPermissionResponse> - Promise resolving to the response