Skip to content

Function: createUserManagementClient() ​

ts
function createUserManagementClient(config): object;

Defined in: src/userManagement/createUserManagementClient.ts:45

Parameters ​

ParameterType
configUserManagementClientConfig

Returns ​

object

apiTokens ​

ts
apiTokens: object;

apiTokens.deleteApiToken ​

ts
deleteApiToken: (parameters, options?) => Promise<void>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; tokenId: string; }-
parameters.accountIdstringThe ID of the user
parameters.tokenId?stringThe ID of the API token
options?RequestOptions-
Returns ​

Promise<void>

apiTokens.getApiTokens ​

ts
getApiTokens: (parameters, options?) => Promise<object[]>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; }-
parameters.accountIdstringThe ID of the user
options?RequestOptions-
Returns ​

Promise<object[]>

email ​

ts
email: object;

email.setEmail ​

ts
setEmail: (parameters, options?) => Promise<void>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; email: string; }-
parameters.accountIdstringThe ID of the user
parameters.email?string-
options?RequestOptions-
Returns ​

Promise<void>

lifecycle ​

ts
lifecycle: object;

lifecycle.activateUser ​

ts
activateUser: (parameters, options?) => Promise<void>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; }-
parameters.accountIdstringThe unique identifier of the user to activate.
options?RequestOptions-
Returns ​

Promise<void>

lifecycle.cancelAccountDeletion ​

ts
cancelAccountDeletion: (parameters, options?) => Promise<void>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; }-
parameters.accountIdstringUnique ID of the user's account that you are deleting. Use the Get users in an organization API to get the accountId.
options?RequestOptions-
Returns ​

Promise<void>

lifecycle.deactivateUser ​

ts
deactivateUser: (parameters, options?) => Promise<void>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; message?: string; }-
parameters.accountIdstringThe ID of the user
parameters.message?string-
options?RequestOptions-
Returns ​

Promise<void>

lifecycle.deleteAccount ​

ts
deleteAccount: (parameters, options?) => Promise<void>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; }-
parameters.accountIdstringUnique ID of the user's account that you are deleting. Use the Get users in an organization API to get the accountId.
options?RequestOptions-
Returns ​

Promise<void>

manage ​

ts
manage: object;

manage.getManagementPermissions ​

ts
getManagementPermissions: (parameters, options?) => Promise<{
[key: string]: unknown;
  apiToken.delete?:   | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key:   | string & object
           | "administrative"
           | "administrative.notMyself"
           | "authPolicy.saml"
           | "blocked.exportControl"
           | "externalDirectory.scim"
           | "externalDirectory.google"
           | "myselfOnly"
           | "managedAccount";
     };
   };
  apiToken.read?:   | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key:   | string & object
           | "administrative"
           | "administrative.notMyself"
           | "authPolicy.saml"
           | "blocked.exportControl"
           | "externalDirectory.scim"
           | "externalDirectory.google"
           | "myselfOnly"
           | "managedAccount";
     };
   };
  email.set?:   | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key:   | string & object
           | "administrative"
           | "administrative.notMyself"
           | "authPolicy.saml"
           | "blocked.exportControl"
           | "externalDirectory.scim"
           | "externalDirectory.google"
           | "myselfOnly"
           | "managedAccount";
     };
   };
  lifecycle.delete?:   | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key:   | string & object
           | "administrative"
           | "administrative.notMyself"
           | "authPolicy.saml"
           | "blocked.exportControl"
           | "externalDirectory.scim"
           | "externalDirectory.google"
           | "myselfOnly"
           | "managedAccount";
     };
   };
  lifecycle.enablement?:   | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key:   | string & object
           | "administrative"
           | "administrative.notMyself"
           | "authPolicy.saml"
           | "blocked.exportControl"
           | "externalDirectory.scim"
           | "externalDirectory.google"
           | "myselfOnly"
           | "managedAccount";
     };
   };
  profile?: Record<string, 
     | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key: ... | ... | ... | ... | ... | ... | ... | ... | ...;
     };
  }>;
  profile.read?:   | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key:   | string & object
           | "administrative"
           | "administrative.notMyself"
           | "authPolicy.saml"
           | "blocked.exportControl"
           | "externalDirectory.scim"
           | "externalDirectory.google"
           | "myselfOnly"
           | "managedAccount";
     };
   };
  profile.write?: Record<string, 
     | {
   [key: string]: unknown;
     allowed: true;
   }
     | {
   [key: string]: unknown;
     allowed: false;
     reason: {
      [key: string]: unknown;
        key: ... | ... | ... | ... | ... | ... | ... | ... | ...;
     };
  }>;
}>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; privileges?: ( | string & object | "profile" | "profile.write" | "profile.read" | "email.set" | "lifecycle.enablement" | "lifecycle.delete" | "apiToken.read" | "apiToken.delete")[]; }-
parameters.accountIdstringThe user account to manage
parameters.privileges?( | string & object | "profile" | "profile.write" | "profile.read" | "email.set" | "lifecycle.enablement" | "lifecycle.delete" | "apiToken.read" | "apiToken.delete")[]-
options?RequestOptions-
Returns ​

Promise<{ [key: string]: unknown; apiToken.delete?: | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: | string & object | "administrative" | "administrative.notMyself" | "authPolicy.saml" | "blocked.exportControl" | "externalDirectory.scim" | "externalDirectory.google" | "myselfOnly" | "managedAccount"; }; }; apiToken.read?: | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: | string & object | "administrative" | "administrative.notMyself" | "authPolicy.saml" | "blocked.exportControl" | "externalDirectory.scim" | "externalDirectory.google" | "myselfOnly" | "managedAccount"; }; }; email.set?: | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: | string & object | "administrative" | "administrative.notMyself" | "authPolicy.saml" | "blocked.exportControl" | "externalDirectory.scim" | "externalDirectory.google" | "myselfOnly" | "managedAccount"; }; }; lifecycle.delete?: | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: | string & object | "administrative" | "administrative.notMyself" | "authPolicy.saml" | "blocked.exportControl" | "externalDirectory.scim" | "externalDirectory.google" | "myselfOnly" | "managedAccount"; }; }; lifecycle.enablement?: | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: | string & object | "administrative" | "administrative.notMyself" | "authPolicy.saml" | "blocked.exportControl" | "externalDirectory.scim" | "externalDirectory.google" | "myselfOnly" | "managedAccount"; }; }; profile?: Record<string, | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: ... | ... | ... | ... | ... | ... | ... | ... | ...; }; }>; profile.read?: | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: | string & object | "administrative" | "administrative.notMyself" | "authPolicy.saml" | "blocked.exportControl" | "externalDirectory.scim" | "externalDirectory.google" | "myselfOnly" | "managedAccount"; }; }; profile.write?: Record<string, | { [key: string]: unknown; allowed: true; } | { [key: string]: unknown; allowed: false; reason: { [key: string]: unknown; key: ... | ... | ... | ... | ... | ... | ... | ... | ...; }; }>; }>

profile ​

ts
profile: object;

profile.getProfile ​

ts
getProfile: (parameters, options?) => Promise<{
[key: string]: unknown;
  account: {
   [key: string]: unknown;
     account_id: string;
     account_status: "active" | "inactive" | "closed" | string & object;
     account_type: string & object | "atlassian" | "app" | "customer";
     characteristics?: {
      [key: string]: unknown;
        not_mentionable?: boolean;
     };
     email: string;
     extended_profile?: {
      [key: string]: unknown;
        department?: string;
        job_title?: string;
        location?: string;
        organization?: string;
     };
     locale?: string;
     name: string;
     nickname: string;
     picture: string;
     zoneinfo?: string;
  };
}>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; }-
parameters.accountIdstringThe ID of the user
options?RequestOptions-
Returns ​

Promise<{ [key: string]: unknown; account: { [key: string]: unknown; account_id: string; account_status: "active" | "inactive" | "closed" | string & object; account_type: string & object | "atlassian" | "app" | "customer"; characteristics?: { [key: string]: unknown; not_mentionable?: boolean; }; email: string; extended_profile?: { [key: string]: unknown; department?: string; job_title?: string; location?: string; organization?: string; }; locale?: string; name: string; nickname: string; picture: string; zoneinfo?: string; }; }>

profile.updateProfile ​

ts
updateProfile: (parameters, options?) => Promise<{
[key: string]: unknown;
  account: {
   [key: string]: unknown;
     account_id: string;
     account_status: "active" | "inactive" | "closed" | string & object;
     account_type: string & object | "atlassian" | "app" | "customer";
     characteristics?: {
      [key: string]: unknown;
        not_mentionable?: boolean;
     };
     email: string;
     extended_profile?: {
      [key: string]: unknown;
        department?: string;
        job_title?: string;
        location?: string;
        organization?: string;
     };
     locale?: string;
     name: string;
     nickname: string;
     picture: string;
     zoneinfo?: string;
  };
}>;
Parameters ​
ParameterTypeDescription
parameters{ accountId: string; extended_profile?: { department?: string; job_title?: string; location?: string; organization?: string; }; locale?: string; name?: string; nickname?: string; zoneinfo?: string; }-
parameters.accountIdstringThe ID of the user to update
parameters.extended_profile?{ department?: string; job_title?: string; location?: string; organization?: string; }-
parameters.extended_profile.department?string-
parameters.extended_profile.job_title?string-
parameters.extended_profile.location?string-
parameters.extended_profile.organization?string-
parameters.locale?string-
parameters.name?string-
parameters.nickname?string-
parameters.zoneinfo?string-
options?RequestOptions-
Returns ​

Promise<{ [key: string]: unknown; account: { [key: string]: unknown; account_id: string; account_status: "active" | "inactive" | "closed" | string & object; account_type: string & object | "atlassian" | "app" | "customer"; characteristics?: { [key: string]: unknown; not_mentionable?: boolean; }; email: string; extended_profile?: { [key: string]: unknown; department?: string; job_title?: string; location?: string; organization?: string; }; locale?: string; name: string; nickname: string; picture: string; zoneinfo?: string; }; }>