Skip to main content
  • Checks if the specified user has the specified permission on the specified object.

    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: GPUdbCallback

      Optional callback function

    Returns Promise<HasPermissionResponse>

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