Skip to content

Function: createCustomerSkippingPermissionCheck() ​

ts
function createCustomerSkippingPermissionCheck(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  _links?: {
   [key: string]: unknown;
     avatarUrls?: Record<string, string>;
     jiraRest?: string;
     self?: string;
  };
  accountId?: string;
  active?: boolean;
  displayName?: string;
  emailAddress?: string;
  key?: string;
  name?: string;
  timeZone?: string;
}>;

Defined in: src/serviceDesk/api/customer.ts:48

Creates a customer account on behalf of jsd-nutmeg.

This endpoint is restricted to jsd-nutmeg via ASAP authentication. It provides the same capability as the public POST /servicedeskapi/customer endpoint, but does not require a User Context Token (UCT) or Connect app user — authorization is enforced entirely via the ASAP token.

No user permission checks are performed; null is passed as the acting user to bypass the permission check in the underlying service.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ displayName?: string; email?: string; fullName?: string; strictConflictStatusCode?: boolean; }-
parameters.displayName?stringCustomer's name for display in the UI.
parameters.email?stringCustomer's email address.
parameters.fullName?stringDeprecated, please use 'displayName'.
parameters.strictConflictStatusCode?booleanOptional boolean flag; when true, returns 409 Conflict for duplicate email instead of the default 400.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; _links?: { [key: string]: unknown; avatarUrls?: Record<string, string>; jiraRest?: string; self?: string; }; accountId?: string; active?: boolean; displayName?: string; emailAddress?: string; key?: string; name?: string; timeZone?: string; }>