Skip to main content

UsersApi

MethodHTTP requestDescription
CreateMagicLinkUsingPUTPUT /api/web/v1/users/{userid}/magiclinkCreate and get the Magic Link for a user
CreateUserUsingPOSTPOST /api/web/v3/usersCreate a user
CreateUsersUsingPOSTPOST /api/web/v3/users/multipleCreate multiple users
DeleteMagicLinkUsingDELETEDELETE /api/web/v1/users/{userid}/magiclinkDelete the Magic Link for a given user
DeleteUserUsingDELETEDELETE /api/web/v3/users/{id}Delete a user
DeleteUsersUsingDELETEDELETE /api/web/v3/users/multipleDelete multiple users
ModifyUserAOrganizationAssociationsUsingPUTPUT /api/web/v1/users/{userid}/organizationsModify user organization membership
SyncUserUsingPOSTPOST /api/web/v1/syncusers/syncSynchronize a new user or an existing user
UnlockUserUsingPUTPUT /api/web/v1/users/{id}/unlockUnlock user
UnsyncUserUsingPOSTPOST /api/web/v1/syncusers/unsyncUnsynchronize an existing user
UpdateUserStateUsingPUTPUT /api/web/v1/users/{id}/stateUpdate user state
UpdateUserUsingPUTPUT /api/web/v3/users/{id}Update a user
UpdateUsersUsingPUTPUT /api/web/v3/users/multipleUpdate multiple users
UserByExternalIdUsingPOSTPOST /api/web/v3/users/externalidGet a user by externalId
UserByUseridUsingPOSTPOST /api/web/v3/users/useridGet a user by userid or user alias
UserUsingGETGET /api/web/v3/users/{id}Get a user by UUID
UsersPagedUsingPOSTPOST /api/web/v4/userspagedLists a page of users

CreateMagicLinkUsingPUT

MagicLinkResponse CreateMagicLinkUsingPUT (string userid, MagicLinkCreateParms magicLinkCreateParms)

Create and get the Magic Link for a user

Create and get the Magic Link for the specified user. Caller requires the MAGICLINKS:ADD permission.

Using the CreateMagicLinkUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
useridstring
magicLinkCreateParmsMagicLinkCreateParms

Return type

MagicLinkResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

CreateUserUsingPOST

User CreateUserUsingPOST (UserParms userParms)

Create a user

Create a user. Caller requires the USERS:ADD permission.

Example

Using the CreateUserUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
userParmsUserParms

Return type

User

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

CreateUsersUsingPOST

List<CreateUserResult> CreateUsersUsingPOST (CreateUsersParms createUsersParms)

Create multiple users

Create multiple users. Caller requires the USERS:ADD permission.

Example

Using the CreateUsersUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
createUsersParmsCreateUsersParms

Return type

List<CreateUserResult>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

DeleteMagicLinkUsingDELETE

void DeleteMagicLinkUsingDELETE (string userid)

Delete the Magic Link for a given user

Delete the Magic Link for the specified user. Caller requires the MAGICLINKS:REMOVE permission.

Example

Using the DeleteMagicLinkUsingDELETEWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
useridstringThe UUID of the user to delete the Magic Link for.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

DeleteUserUsingDELETE

void DeleteUserUsingDELETE (string id)

Delete a user

Delete the specified user. Caller requires the USERS:REMOVE permission.

Example

Using the DeleteUserUsingDELETEWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the user to be deleted.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

DeleteUsersUsingDELETE

List<DeleteUserResult> DeleteUsersUsingDELETE (DeleteUsersParms deleteUsersParms)

Delete multiple users

Delete multiple users. Caller requires the USERS:REMOVE permission.

Example

Using the DeleteUsersUsingDELETEWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
deleteUsersParmsDeleteUsersParms

Return type

List<DeleteUserResult>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

ModifyUserAOrganizationAssociationsUsingPUT

void ModifyUserAOrganizationAssociationsUsingPUT (string userid, UserOrganizationParms userOrganizationParms)

Modify user organization membership

Modify the list of organizations assigned to a specified user. Caller requires the USERS:EDIT permission.

Example

Using the ModifyUserAOrganizationAssociationsUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
useridstringThe UUID of the user whose organization membership is to be modified.
userOrganizationParmsUserOrganizationParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

SyncUserUsingPOST

SyncUser SyncUserUsingPOST (SyncUserParms syncUserParms)

Synchronize a new user or an existing user

Synchronize a user. Caller requires the USERS:EDIT permission. An Identity as a Service directory must be configured and associated with an Identity as a Service Gateway 5.0 or later. If you unsynchronize a user using the unsync API, the user becomes locally managed. In order to set the user back to an AD Sync user, the user should be synchronized again using this API. Using an AD Sync crawl will only re-synchronize the user if the user is updated in AD (i.e., the user's last update time in AD is updated) or a new custom user attribute mapping is added for the directory (this resets The last update time for all users such that all AD users will be re-synchronlized).

The following response status attribute values are possible:

  • CONVERTED: the locally managed Identity as a Service user was converted into an AD Sync user.
  • CREATED: a new user was created as an AD Sync user.
  • DELETED: the user was not found in AD and has been deleted in Identity as a Service.
  • LOCALIZED_ENABLED: the user was not found in AD and has been set as locally managed and enabled in Identity as a Service.
  • LOCALIZED_DISABLED: the user was not found in AD and has been set as locally managed and disabled in Identity as a Service.
  • UPDATED: the user was synchronized.

Example

Using the SyncUserUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
syncUserParmsSyncUserParms

Return type

SyncUser

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UnlockUserUsingPUT

void UnlockUserUsingPUT (string id)

Unlock user

Unlock the specified user. Caller requires the USERS:EDIT permission.

Example

Using the UnlockUserUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the user that will be unlocked.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UnsyncUserUsingPOST

void UnsyncUserUsingPOST (UnsyncUserParms unsyncUserParms)

Unsynchronize an existing user

Unsynchronize a user. Caller requires the USERS:EDIT permission. An Identity as a Service directory must be configured and associated with an Identity as a Service Gateway 5.0 or later. If you unsynchronize a user using this API, the user becomes locally managed. In order to set the user back to an AD Sync user, the user should be synchronized again using the sync API. Using an AD Sync crawl will only re-synchronize the user if the user is updated in AD (i.e., the user's last update time in AD is updated) or a new custom user attribute mapping is added for the directory (this resets the last update time for all users such that all AD users will be re-synchronlized).

Example

Using the UnsyncUserUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
unsyncUserParmsUnsyncUserParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UpdateUserStateUsingPUT

void UpdateUserStateUsingPUT (string id, UserChangeStateParms userChangeStateParms)

Update user state

Update the state of the specified user. Caller requires the USERS:EDIT permission.

Example

Using the UpdateUserStateUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the user whose state is to be updated.
userChangeStateParmsUserChangeStateParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UpdateUserUsingPUT

void UpdateUserUsingPUT (string id, UserParms userParms)

Update a user

Update the specified user. Caller requires the USERS:EDIT permission.

Example

Using the UpdateUserUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the user to be updated.
userParmsUserParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UpdateUsersUsingPUT

List<UpdateUserResult> UpdateUsersUsingPUT (UpdateUsersParms updateUsersParms)

Update multiple users

Update multiple users. Caller requires the USERS:EDIT permission.

Example

Using the UpdateUsersUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
updateUsersParmsUpdateUsersParms

Return type

List<UpdateUserResult>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UserByExternalIdUsingPOST

User UserByExternalIdUsingPOST (UserGetParms userGetParms)

Get a user by externalId

Get the user with the specified externalId. Caller requires the USERS:VIEW permission.

Example

Using the UserByExternalIdUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
userGetParmsUserGetParms

Return type

User

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UserByUseridUsingPOST

User UserByUseridUsingPOST (UserGetParms userGetParms)

Get a user by userid or user alias

Get the specified user by userid or user alias. Caller requires the USERS:VIEW permission.

Example

Using the UserByUseridUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
userGetParmsUserGetParms

Return type

User

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UserUsingGET

User UserUsingGET (string id)

Get a user by UUID

Get the specified user by UUID. Caller requires the USERS:VIEW permission.

Example

Using the UserUsingGETWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the user to be fetched.

Return type

User

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UsersPagedUsingPOST

UsersPage UsersPagedUsingPOST (SearchParms searchParms)

Lists a page of users

Returns users for the provided search parameters. Caller requires the USERS:VIEW permission. The following searchByAttributes are supported:

  • userId: a String value (it matches both the User ID or any alias). Allowed operators are: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH.
  • groupId: a String value should be a UUID of an existing group. Allowed operator: EQUALS.
  • roleId: a String value should be a UUID of an existing role. Allowed operator: EQUALS.
  • authenticator: a String with value ENTRUST_SOFT_TOKEN or FIDO or GOOGLE_AUTHENTICATOR or GRID or HARDWARE_TOKEN or KBA or OTP or PASSWORD or SMARTCREDENTIALPUSH or TEMP_ACCESS_CODE or FACE. Allowed operator: EQUALS, NOT_EQUALS.
  • state: ACTIVE or INACTIVE. Allowed operator: EQUALS.
  • locked: 'true' is the only value allowed. Allowed operator: EQUALS.
  • userType: a String with value LOCAL or SYNC or EXTERNAL. Allowed operator: EQUALS.
  • registrationRequired: true or false. Allowed operator: EQUALS.
  • verificationRequired: true or false. Allowed operator: EQUALS.
  • lastAuthTime: a String value representing an ISO-8601 date in UTC time (e.g., 2018-08-04T18:15:30). Allowed operators are: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EXISTS, NOT_EXISTS.
  • passwordExpirationTime: a String value representing an ISO-8601 date in UTC time (e.g., 2018-08-04T18:15:30). Allowed operators are: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EXISTS, NOT_EXISTS.
  • organizationId: a String value should be a UUID of an existing organization. Allowed operator: EQUALS.

If you provide more than one search attribute, they are joined with an AND condition.

The orderByAttribute supports these attribute names: userId, state, lastAuthTime.

The following attributes can be optionally included in the returned User object: grids, tokens, smartCredentials, tempAccessCode, fidoTokens, userAttributeValues, userAliases, groups, oauthRoles, authenticatorLockoutStatus, organizations

Example

Using the UsersPagedUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
searchParmsSearchParms

Return type

UsersPage

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-