Function: createCustomerSkippingPermissionCheck()
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
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { displayName?: string; email?: string; fullName?: string; strictConflictStatusCode?: boolean; } | - |
parameters.displayName? | string | Customer's name for display in the UI. |
parameters.email? | string | Customer's email address. |
parameters.fullName? | string | Deprecated, please use 'displayName'. |
parameters.strictConflictStatusCode? | boolean | Optional 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; }>