Skip to main content
Version: 4.42

API reference — Local user management

Overview

The Redtrust administration API includes methods for managing the complete lifecycle of local users: creating them, updating them, changing their status, unblocking them, and deleting them.

Before you start

Before testing these methods, you need to set up SoapUI.

important

The <!--Optional:--> comments that appear in SOAP requests are generated automatically and may incorrectly mark required fields as optional.

This documentation explicitly states which fields are required or optional. Always trust this documentation.

Create a local user

AddLocalUser

Creates a new local user in a domain.

NameTypeRequiredDescription
domainIdintegerYesDomain ID. Find the value in ListDomains.
usernamestringYesUsername. Accepts letters (A-Z, a-z), numbers (0-9) and the characters -, _ and . as separators.
namestringYesFull name of the user. Can include spaces and accented characters.
passwordstringYesPassword of at least 3 characters. Any characters are allowed.
emailstringYesMust be a valid email format.
forceChangePasswordbooleanYesForces the user to change the password the first time they authenticate to Redtrust.
activebooleanYesWhether the user account is active. If true, the user can log in; if false, the account is disabled.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:AddLocalUser>
<urn:domainId>1</urn:domainId>
<urn:username>maria.lopez</urn:username>
<urn:name>maria</urn:name>
<urn:password>123maria</urn:password>
<urn:email>maria@test.com</urn:email>
<urn:forceChangePassword>0</urn:forceChangePassword>
<urn:active>1</urn:active>
</urn:AddLocalUser>
</soap:Body>
</soap:Envelope>

Update a local user

EditLocalUser

Updates an existing local user. Fields not included in the request retain their current value.

NameTypeRequiredDescription
domainIdintegerYesID of the domain where the user exists. Find the value in ListDomains.
userIdintegerYesID of the user you want to update. Find the value in ListDomainUserIds.
namestringNo*Full name of the user. Can include spaces and accented characters.
passwordstringNoPassword of at least 3 characters. Any characters are allowed. To update it you have to provide the name and email.
emailstringNo*To update it you have to provide the name. Must be a valid email format.
forceChangePasswordbooleanYesForces the user to change the password the first time they authenticate to Redtrust. To update it you have to provide the name and email.
activebooleanYesWhether the user account is active. To update it you have to provide the name and email.

(*) Required to update some parameters.

   <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:EditLocalUser>
<urn:domainId>1</urn:domainId>
<urn:userId>2</urn:userId>
<urn:name>Betty Smith</urn:name>
<urn:password></urn:password>
<urn:email></urn:email>
<urn:forceChangePassword>0</urn:forceChangePassword>
<urn:active>1</urn:active>
</urn:EditLocalUser>
</soap:Body>
</soap:Envelope>

Enable or disable users

ChangeUsersStatus

Changes the active or inactive status of one or more users at once.

NameTypeRequiredDescription
domainIdintegerYesDomain ID. Find the value in ListDomains.
userIdsarray of integersYesIDs of the users to update. Find the values in ListDomainUserIds. You can send multiple IDs as shown in the example.
statusintegerYesStatus to apply: active (1) or inactive (0).
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soap:Header/>
<soap:Body>
<urn:ChangeUsersStatus>
<urn:domainId>1</urn:domainId>
<urn:userIds>
<!--Zero or more repetitions:-->
<arr:int>1011</arr:int>
<arr:int>1012</arr:int>
<arr:int>1013</arr:int>
</urn:userIds>
<urn:status>1</urn:status>
</urn:ChangeUsersStatus>
</soap:Body>
</soap:Envelope>

Unblock a local user

UnblockLocalUser

Unblocks a local user who has been locked out after too many failed authentication attempts.

NameTypeRequiredDescription
domainIdintegerYesID of the domain where the user exists. Find the value in ListDomains.
userIdintegerYesID of the user to unblock. Find the value in ListDomainUserIds.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:UnblockLocalUser>
<urn:domainId>1</urn:domainId>
<urn:userId>1007</urn:userId>
</urn:UnblockLocalUser>
</soap:Body>
</soap:Envelope>

Delete users

DeleteUsers

Permanently deletes one or more users.

NameTypeRequiredDescription
domainIdintegerYesID of the domain where the user exists. Find the value in ListDomains.
userIdsarray of integersYesIDs of the users to delete. Find the values in ListDomainUserIds. You can send multiple IDs as shown in the example.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soap:Header/>
<soap:Body>
<urn:DeleteUsers>
<urn:domainId>1</urn:domainId>
<urn:userIds>
<!--Zero or more repetitions:-->
<arr:int>1006</arr:int>
<arr:int>1010</arr:int>
</urn:userIds>
</urn:DeleteUsers>
</soap:Body>
</soap:Envelope>

Retrieve user information

ListUsersInDomain

Returns the list of users in a domain with their main data.

NameTypeRequiredDescription
domainIdintegerYesDomain ID. Find the value in ListDomains.
filterstringNoText that results must contain. If empty, returns all users.
   <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:ListUsersInDomain>
<urn:filter>john</urn:filter>
<urn:domainId>1</urn:domainId>
</urn:ListUsersInDomain>
</soap:Body>
</soap:Envelope>

ListDomains

Returns the list of available domains. Use this method to obtain the value of domainId.

NameTypeRequiredDescription
filterstringNoText that results must contain. If empty, returns all domains.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:ListDomains>
<urn:filter>local.users</urn:filter>
</urn:ListDomains>
</soap:Body>
</soap:Envelope>

ListDomainUserIds

Returns the list of user IDs in a domain. Use this method to obtain the value of userId or userIds.

NameTypeRequiredDescription
domainIdintegerYesDomain ID. Find the value in ListDomains.
viewTypestringYesFilters users by status: VIEW_ALL, VIEW_ACTIVE, VIEW_INACTIVE, VIEW_CONSUME_LICENSE, VIEW_NO_CONSUME_LICENSE.
filterstringNoText that results must contain. If empty, returns all users.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:ListDomainUserIds>
<urn:domainId>1</urn:domainId>
<urn:viewType>VIEW_ALL</urn:viewType>
<urn:filter></urn:filter>
</urn:ListDomainUserIds>
</soap:Body>
</soap:Envelope>