Skip to main content
Version: 4.32

API Reference — Local user management

Overview

The Redtrust API provides multiple methods. This documentation highlights some of the most relevant methods for users who need to perform key operations to manage local users.

Before you start

Before testing these methods, you need to configure SOAP UI.

important

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

This documentation explicitly indicates which fields are required or optional. Always rely on this documentation.

Create local user

AddLocalUser

This method lets you add new users.

NameTypeRequiredDescription
domainIdintegerYesDomain ID. Find the value in ListDomains.
usernamestringYesUsername. Accepts letters (A-Z, a-z), numbers (0-9) and this characters -, _ and . to be used as separators.
namestringYesFull name of the user. It can include spaces and accented characters.
passwordstringYesPassword of at least 3 characters. Any characters are allowed.
emailstringYesIt has to be a valid email format.
forceChangePasswordbooleanYesForces the user to change the password the first time it authenticates to Redtrust.
activebooleanYesIndicates whether 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 local user

EditLocalUser

This method updates an existing local user. The example shows a change in the name parameter.

NameTypeRequiredDescription
domainIdintegerYesID of the domain where the user exists. Find the value in ListDomains.
userIdstringYesID of the user you want to update. Find the value in ListDomainUserIds.
namestringNo*Full name of the user. It 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. It must be at least 3 characters long. Any characters are allowed.
emailstringNo*To update it you have to provide the name. It has to be a valid email format.
forceChangePasswordbooleanYesForces the user to change the password the first time it authenticates to Redtrust. To update it you have to provide the name and email.
activebooleanYesDefines whether 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>

ChangeUsersStatus

Change the status of one or more users (active or inactive).

NameTypeRequiredDescription
domainIdintegerYesFind the value in ListDomains.
userIdstringYesID of the user you want to update. Find the value in ListDomainUserIds. It can be an array as shown in the example.
statusbooleanYesStatus of the user, 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>

Delete a user

DeleteUser

Deletes one or multiple users.

NameTypeRequiredDescription
domainIdintegerYesID of the domain where the user exists. Find the value in ListDomains.
userIdintegerYesID of the user you want to edit. Find the value in ListDomainUserIds. You can add an array 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

Provides a list of users in a domain.

NameTypeRequiredDescription
domainIdintegerYesID of the domain where the user exists. Find the value in ListDomains.
filterstringNoWhen empty, it lists all users. Alternatively, add the username or email you need to filter the results.
   <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

Get a list of domains.

NameTypeRequiredDescription
filterstringNoWhen empty, it lists all domains. Alternatively, add the domain name for which you need the ID.
<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

Get a list of user IDs in a domain.

NameTypeRequiredDescription
domainIdstringYesID of the domain where the user exists. Find the value in ListDomains.
viewTypestringYes'VIEW_ALL', 'VIEW_ACTIVE', 'VIEW_INACTIVE', 'VIEW_CONSUME_LICENSE', 'VIEW_NO_CONSUME_LICENSE'
filterstringNoWhen empty, it lists all domains. Alternatively, enter the domain name for which you need the ID.
<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>
warning

If you get any errors when making a request, check your SOAP API configuration and make sure you authenticated with the correct credentials (for example, with the admin user).