All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
activateUser | POST /api/v1/users/{userId}/lifecycle/activate | Activate a User |
changePassword | POST /api/v1/users/{userId}/credentials/change_password | Change Password |
changeRecoveryQuestion | POST /api/v1/users/{userId}/credentials/change_recovery_question | Change Recovery Question |
clearUserSessions | DELETE /api/v1/users/{userId}/sessions | Delete all User Sessions |
createUser | POST /api/v1/users | Create a User |
deactivateOrDeleteUser | DELETE /api/v1/users/{userId} | Delete a User |
deactivateUser | POST /api/v1/users/{userId}/lifecycle/deactivate | Deactivate a User |
expirePassword | POST /api/v1/users/{userId}/lifecycle/expire_password | Expire Password |
expirePasswordAndGetTemporaryPassword | POST /api/v1/users/{userId}/lifecycle/expire_password_with_temp_password | Expire Password and Set Temporary Password |
forgotPassword | POST /api/v1/users/{userId}/credentials/forgot_password | Initiate Forgot Password |
forgotPasswordSetNewPassword | POST /api/v1/users/{userId}/credentials/forgot_password_recovery_question | Reset Password with Recovery Question |
getLinkedObjectsForUser | GET /api/v1/users/{userId}/linkedObjects/{relationshipName} | List all Linked Objects |
getRefreshTokenForUserAndClient | GET /api/v1/users/{userId}/clients/{clientId}/tokens/{tokenId} | Retrieve a Refresh Token for a Client |
getUser | GET /api/v1/users/{userId} | Retrieve a User |
getUserGrant | GET /api/v1/users/{userId}/grants/{grantId} | Retrieve a User Grant |
listAppLinks | GET /api/v1/users/{userId}/appLinks | List all Assigned Application Links |
listGrantsForUserAndClient | GET /api/v1/users/{userId}/clients/{clientId}/grants | List all Grants for a Client |
listRefreshTokensForUserAndClient | GET /api/v1/users/{userId}/clients/{clientId}/tokens | List all Refresh Tokens for a Client |
listUserClients | GET /api/v1/users/{userId}/clients | List all Clients |
listUserGrants | GET /api/v1/users/{userId}/grants | List all User Grants |
listUserGroups | GET /api/v1/users/{userId}/groups | List all Groups |
listUserIdentityProviders | GET /api/v1/users/{userId}/idps | List all Identity Providers |
listUsers | GET /api/v1/users | List all Users |
partialUpdateUser | POST /api/v1/users/{userId} | Update a User |
reactivateUser | POST /api/v1/users/{userId}/lifecycle/reactivate | Reactivate a User |
removeLinkedObjectForUser | DELETE /api/v1/users/{userId}/linkedObjects/{relationshipName} | Delete a Linked Object |
resetFactors | POST /api/v1/users/{userId}/lifecycle/reset_factors | Reset all Factors |
resetPassword | POST /api/v1/users/{userId}/lifecycle/reset_password | Reset Password |
revokeGrantsForUserAndClient | DELETE /api/v1/users/{userId}/clients/{clientId}/grants | Revoke all Grants for a Client |
revokeTokenForUserAndClient | DELETE /api/v1/users/{userId}/clients/{clientId}/tokens/{tokenId} | Revoke a Token for a Client |
revokeTokensForUserAndClient | DELETE /api/v1/users/{userId}/clients/{clientId}/tokens | Revoke all Refresh Tokens for a Client |
revokeUserGrant | DELETE /api/v1/users/{userId}/grants/{grantId} | Revoke a User Grant |
revokeUserGrants | DELETE /api/v1/users/{userId}/grants | Revoke all User Grants |
setLinkedObjectForUser | PUT /api/v1/users/{associatedUserId}/linkedObjects/{primaryRelationshipName}/{primaryUserId} | Create a Linked Object for two User |
suspendUser | POST /api/v1/users/{userId}/lifecycle/suspend | Suspend a User |
unlockUser | POST /api/v1/users/{userId}/lifecycle/unlock | Unlock a User |
unsuspendUser | POST /api/v1/users/{userId}/lifecycle/unsuspend | Unsuspend a User |
updateUser | PUT /api/v1/users/{userId} | Replace a User |
UserActivationToken activateUser()
Activates a user. This operation can only be performed on users with a STAGED
status. Activation of a user is an asynchronous operation. The user will have the transitioningToStatus
property with a value of ACTIVE
during activation to indicate that the user hasn’t completed the asynchronous operation. The user will have a status of ACTIVE
when the activation process is complete.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiActivateUserRequest = {
// string
userId: "userId_example",
// boolean | Sends an activation email to the user if true
sendEmail: true,
};
apiInstance.activateUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
sendEmail | [boolean] | Sends an activation email to the user if true | defaults to undefined |
UserActivationToken
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCredentials changePassword(changePasswordRequest)
Changes a user’s password by validating the user’s current password. This operation can only be performed on users in STAGED
, ACTIVE
, PASSWORD_EXPIRED
, or RECOVERY
status that have a valid password credential
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiChangePasswordRequest = {
// string
userId: "userId_example",
// ChangePasswordRequest
changePasswordRequest: {
newPassword: {
hash: {
algorithm: "BCRYPT",
salt: "salt_example",
saltOrder: "saltOrder_example",
value: "value_example",
workFactor: 1,
},
hook: {
type: "type_example",
},
value: "value_example",
},
oldPassword: {
hash: {
algorithm: "BCRYPT",
salt: "salt_example",
saltOrder: "saltOrder_example",
value: "value_example",
workFactor: 1,
},
hook: {
type: "type_example",
},
value: "value_example",
},
},
// boolean (optional)
strict: true,
};
apiInstance.changePassword(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
changePasswordRequest | ChangePasswordRequest | ||
userId | [string] | defaults to undefined | |
strict | [boolean] | (optional) defaults to undefined |
UserCredentials
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCredentials changeRecoveryQuestion(userCredentials)
Changes a user’s recovery question & answer credential by validating the user’s current password. This operation can only be performed on users in STAGED, ACTIVE or RECOVERY status
that have a valid password credential
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiChangeRecoveryQuestionRequest = {
// string
userId: "userId_example",
// UserCredentials
userCredentials: {
password: {
hash: {
algorithm: "BCRYPT",
salt: "salt_example",
saltOrder: "saltOrder_example",
value: "value_example",
workFactor: 1,
},
hook: {
type: "type_example",
},
value: "value_example",
},
provider: {
name: "name_example",
type: "ACTIVE_DIRECTORY",
},
recovery_question: {
answer: "answer_example",
question: "question_example",
},
},
};
apiInstance.changeRecoveryQuestion(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userCredentials | UserCredentials | ||
userId | [string] | defaults to undefined |
UserCredentials
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void clearUserSessions()
Removes all active identity provider sessions. This forces the user to authenticate on the next operation. Optionally revokes OpenID Connect and OAuth refresh and access tokens issued to the user.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiClearUserSessionsRequest = {
// string
userId: "userId_example",
// boolean | Revoke issued OpenID Connect and OAuth refresh and access tokens (optional)
oauthTokens: false,
};
apiInstance.clearUserSessions(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
oauthTokens | [boolean] | Revoke issued OpenID Connect and OAuth refresh and access tokens | (optional) defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User createUser(body)
Creates a new user in your Okta organization with or without credentials.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiCreateUserRequest = {
// CreateUserRequest
body: {
credentials: {
password: {
hash: {
algorithm: "BCRYPT",
salt: "salt_example",
saltOrder: "saltOrder_example",
value: "value_example",
workFactor: 1,
},
hook: {
type: "type_example",
},
value: "value_example",
},
provider: {
name: "name_example",
type: "ACTIVE_DIRECTORY",
},
recovery_question: {
answer: "answer_example",
question: "question_example",
},
},
groupIds: [
"groupIds_example",
],
profile: {
city: "city_example",
costCenter: "costCenter_example",
countryCode: "countryCode_example",
department: "department_example",
displayName: "displayName_example",
division: "division_example",
email: "email_example",
employeeNumber: "employeeNumber_example",
firstName: "firstName_example",
honorificPrefix: "honorificPrefix_example",
honorificSuffix: "honorificSuffix_example",
lastName: "lastName_example",
locale: "locale_example",
login: "login_example",
manager: "manager_example",
managerId: "managerId_example",
middleName: "middleName_example",
mobilePhone: "mobilePhone_example",
nickName: "nickName_example",
organization: "organization_example",
postalAddress: "postalAddress_example",
preferredLanguage: "preferredLanguage_example",
primaryPhone: "primaryPhone_example",
profileUrl: "profileUrl_example",
secondEmail: "secondEmail_example",
state: "state_example",
streetAddress: "streetAddress_example",
timezone: "timezone_example",
title: "title_example",
userType: "userType_example",
zipCode: "zipCode_example",
},
type: {
description: "description_example",
displayName: "displayName_example",
id: "id_example",
name: "name_example",
},
},
// boolean | Executes activation lifecycle operation when creating the user (optional)
activate: true,
// boolean | Indicates whether to create a user with a specified authentication provider (optional)
provider: false,
// UserNextLogin | With activate=true, set nextLogin to \"changePassword\" to have the password be EXPIRED, so user must change it the next time they log in. (optional)
nextLogin: "changePassword",
};
apiInstance.createUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
body | CreateUserRequest | ||
activate | [boolean] | Executes activation lifecycle operation when creating the user | (optional) defaults to undefined |
provider | [boolean] | Indicates whether to create a user with a specified authentication provider | (optional) defaults to undefined |
nextLogin | UserNextLogin | With activate=true, set nextLogin to \"changePassword\" to have the password be EXPIRED, so user must change it the next time they log in. | (optional) defaults to undefined |
User
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deactivateOrDeleteUser()
Deletes a user permanently. This operation can only be performed on users that have a DEPROVISIONED
status. This action cannot be recovered!
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiDeactivateOrDeleteUserRequest = {
// string
userId: "userId_example",
// boolean (optional)
sendEmail: false,
};
apiInstance.deactivateOrDeleteUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
sendEmail | [boolean] | (optional) defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deactivateUser()
Deactivates a user. This operation can only be performed on users that do not have a DEPROVISIONED
status. While the asynchronous operation (triggered by HTTP header Prefer: respond-async
) is proceeding the user’s transitioningToStatus
property is DEPROVISIONED
. The user’s status is DEPROVISIONED
when the deactivation process is complete.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiDeactivateUserRequest = {
// string
userId: "userId_example",
// boolean (optional)
sendEmail: false,
};
apiInstance.deactivateUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
sendEmail | [boolean] | (optional) defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User expirePassword()
This operation transitions the user to the status of PASSWORD_EXPIRED
so that the user is required to change their password at their next login.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiExpirePasswordRequest = {
// string
userId: "userId_example",
};
apiInstance.expirePassword(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
User
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TempPassword expirePasswordAndGetTemporaryPassword()
This operation transitions the user to the status of PASSWORD_EXPIRED
so that the user is required to change their password at their next login, and also sets the user’s password to a temporary password returned in the response.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiExpirePasswordAndGetTemporaryPasswordRequest = {
// string
userId: "userId_example",
};
apiInstance.expirePasswordAndGetTemporaryPassword(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
TempPassword
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ForgotPasswordResponse forgotPassword()
Initiate forgot password flow. Generates a one-time token (OTT) that can be used to reset a user’s password.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiForgotPasswordRequest = {
// string
userId: "userId_example",
// boolean (optional)
sendEmail: true,
};
apiInstance.forgotPassword(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
sendEmail | [boolean] | (optional) defaults to undefined |
ForgotPasswordResponse
| Status code | Description | Response headers | |————-|————-|——————| 200 | Reset url | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserCredentials forgotPasswordSetNewPassword(userCredentials)
Resets the user’s password to the specified password if the provided answer to the recovery question is correct.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiForgotPasswordSetNewPasswordRequest = {
// string
userId: "userId_example",
// UserCredentials
userCredentials: {
password: {
hash: {
algorithm: "BCRYPT",
salt: "salt_example",
saltOrder: "saltOrder_example",
value: "value_example",
workFactor: 1,
},
hook: {
type: "type_example",
},
value: "value_example",
},
provider: {
name: "name_example",
type: "ACTIVE_DIRECTORY",
},
recovery_question: {
answer: "answer_example",
question: "question_example",
},
},
// boolean (optional)
sendEmail: true,
};
apiInstance.forgotPasswordSetNewPassword(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userCredentials | UserCredentials | ||
userId | [string] | defaults to undefined | |
sendEmail | [boolean] | (optional) defaults to undefined |
UserCredentials
| Status code | Description | Response headers | |————-|————-|——————| 200 | Credentials | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
getLinkedObjectsForUser()
Get linked objects for a user, relationshipName can be a primary or associated relationship name
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiGetLinkedObjectsForUserRequest = {
// string
userId: "userId_example",
// string
relationshipName: "relationshipName_example",
// string (optional)
after: "after_example",
// number (optional)
limit: -1,
};
apiInstance.getLinkedObjectsForUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
relationshipName | [string] | defaults to undefined | |
after | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to -1 |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2RefreshToken getRefreshTokenForUserAndClient()
Gets a refresh token issued for the specified User and Client.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiGetRefreshTokenForUserAndClientRequest = {
// string
userId: "userId_example",
// string
clientId: "clientId_example",
// string
tokenId: "tokenId_example",
// string (optional)
expand: "expand_example",
// number (optional)
limit: 20,
// string (optional)
after: "after_example",
};
apiInstance.getRefreshTokenForUserAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined | |
tokenId | [string] | defaults to undefined | |
expand | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to 20 | |
after | [string] | (optional) defaults to undefined |
OAuth2RefreshToken
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User getUser()
Fetches a user from your Okta organization.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiGetUserRequest = {
// string
userId: "userId_example",
};
apiInstance.getUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
User
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OAuth2ScopeConsentGrant getUserGrant()
Gets a grant for the specified user
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiGetUserGrantRequest = {
// string
userId: "userId_example",
// string
grantId: "grantId_example",
// string (optional)
expand: "expand_example",
};
apiInstance.getUserGrant(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
grantId | [string] | defaults to undefined | |
expand | [string] | (optional) defaults to undefined |
OAuth2ScopeConsentGrant
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listAppLinks()
Fetches appLinks for all direct or indirect (via group membership) assigned applications.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListAppLinksRequest = {
// string
userId: "userId_example",
};
apiInstance.listAppLinks(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listGrantsForUserAndClient()
Lists all grants for a specified user and client
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListGrantsForUserAndClientRequest = {
// string
userId: "userId_example",
// string
clientId: "clientId_example",
// string (optional)
expand: "expand_example",
// string (optional)
after: "after_example",
// number (optional)
limit: 20,
};
apiInstance.listGrantsForUserAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined | |
expand | [string] | (optional) defaults to undefined | |
after | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to 20 |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listRefreshTokensForUserAndClient()
Lists all refresh tokens issued for the specified User and Client.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListRefreshTokensForUserAndClientRequest = {
// string
userId: "userId_example",
// string
clientId: "clientId_example",
// string (optional)
expand: "expand_example",
// string (optional)
after: "after_example",
// number (optional)
limit: 20,
};
apiInstance.listRefreshTokensForUserAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined | |
expand | [string] | (optional) defaults to undefined | |
after | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to 20 |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listUserClients()
Lists all client resources for which the specified user has grants or tokens.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListUserClientsRequest = {
// string
userId: "userId_example",
};
apiInstance.listUserClients(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listUserGrants()
Lists all grants for the specified user
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListUserGrantsRequest = {
// string
userId: "userId_example",
// string (optional)
scopeId: "scopeId_example",
// string (optional)
expand: "expand_example",
// string (optional)
after: "after_example",
// number (optional)
limit: 20,
};
apiInstance.listUserGrants(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
scopeId | [string] | (optional) defaults to undefined | |
expand | [string] | (optional) defaults to undefined | |
after | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to 20 |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listUserGroups()
Fetches the groups of which the user is a member.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListUserGroupsRequest = {
// string
userId: "userId_example",
};
apiInstance.listUserGroups(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listUserIdentityProviders()
Lists the IdPs associated with the user.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListUserIdentityProvidersRequest = {
// string
userId: "userId_example",
};
apiInstance.listUserIdentityProviders(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listUsers()
Lists users in your organization with pagination in most cases. A subset of users can be returned that match a supported filter expression or search criteria.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiListUsersRequest = {
// string | Finds a user that matches firstName, lastName, and email properties (optional)
q: "q_example",
// string | The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)
after: "after_example",
// number | Specifies the number of results returned. Defaults to 10 if `q` is provided. (optional)
limit: 200,
// string | Filters users with a supported expression for a subset of properties (optional)
filter: "filter_example",
// string | Searches for users with a supported filtering expression for most properties. Okta recommends using this parameter for search for best performance. (optional)
search: "search_example",
// string (optional)
sortBy: "sortBy_example",
// string (optional)
sortOrder: "sortOrder_example",
};
apiInstance.listUsers(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
q | [string] | Finds a user that matches firstName, lastName, and email properties | (optional) defaults to undefined |
after | [string] | The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See Pagination for more information. | (optional) defaults to undefined |
limit | [number] | Specifies the number of results returned. Defaults to 10 if `q` is provided. | (optional) defaults to 200 |
filter | [string] | Filters users with a supported expression for a subset of properties | (optional) defaults to undefined |
search | [string] | Searches for users with a supported filtering expression for most properties. Okta recommends using this parameter for search for best performance. | (optional) defaults to undefined |
sortBy | [string] | (optional) defaults to undefined | |
sortOrder | [string] | (optional) defaults to undefined |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User partialUpdateUser(user)
Fetch a user by id
, login
, or login shortname
if the short name is unambiguous.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiPartialUpdateUserRequest = {
// string
userId: "userId_example",
// UpdateUserRequest
user: {
credentials: {
password: {
hash: {
algorithm: "BCRYPT",
salt: "salt_example",
saltOrder: "saltOrder_example",
value: "value_example",
workFactor: 1,
},
hook: {
type: "type_example",
},
value: "value_example",
},
provider: {
name: "name_example",
type: "ACTIVE_DIRECTORY",
},
recovery_question: {
answer: "answer_example",
question: "question_example",
},
},
profile: {
city: "city_example",
costCenter: "costCenter_example",
countryCode: "countryCode_example",
department: "department_example",
displayName: "displayName_example",
division: "division_example",
email: "email_example",
employeeNumber: "employeeNumber_example",
firstName: "firstName_example",
honorificPrefix: "honorificPrefix_example",
honorificSuffix: "honorificSuffix_example",
lastName: "lastName_example",
locale: "locale_example",
login: "login_example",
manager: "manager_example",
managerId: "managerId_example",
middleName: "middleName_example",
mobilePhone: "mobilePhone_example",
nickName: "nickName_example",
organization: "organization_example",
postalAddress: "postalAddress_example",
preferredLanguage: "preferredLanguage_example",
primaryPhone: "primaryPhone_example",
profileUrl: "profileUrl_example",
secondEmail: "secondEmail_example",
state: "state_example",
streetAddress: "streetAddress_example",
timezone: "timezone_example",
title: "title_example",
userType: "userType_example",
zipCode: "zipCode_example",
},
},
// boolean (optional)
strict: true,
};
apiInstance.partialUpdateUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
user | UpdateUserRequest | ||
userId | [string] | defaults to undefined | |
strict | [boolean] | (optional) defaults to undefined |
User
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserActivationToken reactivateUser()
Reactivates a user. This operation can only be performed on users with a PROVISIONED
status. This operation restarts the activation workflow if for some reason the user activation was not completed when using the activationToken from Activate User.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiReactivateUserRequest = {
// string
userId: "userId_example",
// boolean | Sends an activation email to the user if true (optional)
sendEmail: false,
};
apiInstance.reactivateUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
sendEmail | [boolean] | Sends an activation email to the user if true | (optional) defaults to undefined |
UserActivationToken
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void removeLinkedObjectForUser()
Delete linked objects for a user, relationshipName can be ONLY a primary relationship name
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiRemoveLinkedObjectForUserRequest = {
// string
userId: "userId_example",
// string
relationshipName: "relationshipName_example",
};
apiInstance.removeLinkedObjectForUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
relationshipName | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void resetFactors()
This operation resets all factors for the specified user. All MFA factor enrollments returned to the unenrolled state. The user’s status remains ACTIVE. This link is present only if the user is currently enrolled in one or more MFA factors.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiResetFactorsRequest = {
// string
userId: "userId_example",
};
apiInstance.resetFactors(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResetPasswordToken resetPassword()
Generates a one-time token (OTT) that can be used to reset a user’s password. The OTT link can be automatically emailed to the user or returned to the API caller and distributed using a custom flow.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiResetPasswordRequest = {
// string
userId: "userId_example",
// boolean
sendEmail: true,
};
apiInstance.resetPassword(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
sendEmail | [boolean] | defaults to undefined |
ResetPasswordToken
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void revokeGrantsForUserAndClient()
Revokes all grants for the specified user and client
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiRevokeGrantsForUserAndClientRequest = {
// string
userId: "userId_example",
// string
clientId: "clientId_example",
};
apiInstance.revokeGrantsForUserAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void revokeTokenForUserAndClient()
Revokes the specified refresh token.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiRevokeTokenForUserAndClientRequest = {
// string
userId: "userId_example",
// string
clientId: "clientId_example",
// string
tokenId: "tokenId_example",
};
apiInstance.revokeTokenForUserAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined | |
tokenId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void revokeTokensForUserAndClient()
Revokes all refresh tokens issued for the specified User and Client.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiRevokeTokensForUserAndClientRequest = {
// string
userId: "userId_example",
// string
clientId: "clientId_example",
};
apiInstance.revokeTokensForUserAndClient(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
clientId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void revokeUserGrant()
Revokes one grant for a specified user
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiRevokeUserGrantRequest = {
// string
userId: "userId_example",
// string
grantId: "grantId_example",
};
apiInstance.revokeUserGrant(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined | |
grantId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void revokeUserGrants()
Revokes all grants for a specified user
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiRevokeUserGrantsRequest = {
// string
userId: "userId_example",
};
apiInstance.revokeUserGrants(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void setLinkedObjectForUser()
Sets a linked object for two users.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiSetLinkedObjectForUserRequest = {
// string
associatedUserId: "associatedUserId_example",
// string
primaryRelationshipName: "primaryRelationshipName_example",
// string
primaryUserId: "primaryUserId_example",
};
apiInstance.setLinkedObjectForUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
associatedUserId | [string] | defaults to undefined | |
primaryRelationshipName | [string] | defaults to undefined | |
primaryUserId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void suspendUser()
Suspends a user. This operation can only be performed on users with an ACTIVE
status. The user will have a status of SUSPENDED
when the process is complete.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiSuspendUserRequest = {
// string
userId: "userId_example",
};
apiInstance.suspendUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void unlockUser()
Unlocks a user with a LOCKED_OUT
status and returns them to ACTIVE
status. Users will be able to login with their current password.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiUnlockUserRequest = {
// string
userId: "userId_example",
};
apiInstance.unlockUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void unsuspendUser()
Unsuspends a user and returns them to the ACTIVE
state. This operation can only be performed on users that have a SUSPENDED
status.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiUnsuspendUserRequest = {
// string
userId: "userId_example",
};
apiInstance.unsuspendUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
userId | [string] | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User updateUser(user)
Update a user’s profile and/or credentials using strict-update semantics.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.UserApi(configuration);
let body:okta.UserApiUpdateUserRequest = {
// string
userId: "userId_example",
// UpdateUserRequest
user: {
credentials: {
password: {
hash: {
algorithm: "BCRYPT",
salt: "salt_example",
saltOrder: "saltOrder_example",
value: "value_example",
workFactor: 1,
},
hook: {
type: "type_example",
},
value: "value_example",
},
provider: {
name: "name_example",
type: "ACTIVE_DIRECTORY",
},
recovery_question: {
answer: "answer_example",
question: "question_example",
},
},
profile: {
city: "city_example",
costCenter: "costCenter_example",
countryCode: "countryCode_example",
department: "department_example",
displayName: "displayName_example",
division: "division_example",
email: "email_example",
employeeNumber: "employeeNumber_example",
firstName: "firstName_example",
honorificPrefix: "honorificPrefix_example",
honorificSuffix: "honorificSuffix_example",
lastName: "lastName_example",
locale: "locale_example",
login: "login_example",
manager: "manager_example",
managerId: "managerId_example",
middleName: "middleName_example",
mobilePhone: "mobilePhone_example",
nickName: "nickName_example",
organization: "organization_example",
postalAddress: "postalAddress_example",
preferredLanguage: "preferredLanguage_example",
primaryPhone: "primaryPhone_example",
profileUrl: "profileUrl_example",
secondEmail: "secondEmail_example",
state: "state_example",
streetAddress: "streetAddress_example",
timezone: "timezone_example",
title: "title_example",
userType: "userType_example",
zipCode: "zipCode_example",
},
},
// boolean (optional)
strict: true,
};
apiInstance.updateUser(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
user | UpdateUserRequest | ||
userId | [string] | defaults to undefined | |
strict | [boolean] | (optional) defaults to undefined |
User
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]