Skip to main content
  • Checks if the specified user has the specified role.

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

      Optional callback function

    Returns Promise<HasRoleResponse>

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