CreateUser
This API creates a new user.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/users/createUser
Input Parameters
Parameters | Description |
---|---|
adminUser | User with admin rights (optional). |
adminPassword | Password for the admin user (optional). |
userName | Name of the new user to be created. |
userPassword | Password for the new user. |
isPasswordChangeable | Use this parameter to change the password. The default value is false (optional). |
certAlias | Client certificate alias for making SSL connections (optional). |
certPassword | Password for the provided certificate alias (optional). |
CustomAttributeList | (Optional), use this parameter to add custom attributes to the user. |
Sample REST call for cxf
request
{
"CreateUserRequest": {
"adminUser": "cryptouser",
"adminPassword": "safenet@123",
"userName": "crypto14",
"userPassword": "safenet@123",
"isPasswordChangeable": "true",
"CustomAttributeList": {
"CustomAttribute": [
{
"Name": "test1",
"Value": "value1"
},
{
"Name": "test2",
"Value": "value2"
}
]
}
}
}
response
{
"CreateUserResponse": {
"description": "user created successfully.",
"userName": "crypto14"
}
}
Sample SOAP Parameters
<prot:CreateUser>
<!--Optional:-->
<adminUser>adminUser</adminUser>
<!--Optional:-->
<adminPassword>asdf1234</adminPassword>
<userName>userToCreate</userName>
<userPassword>asdf1234</userPassword>
<!--Optional:-->
<isPasswordChangeable>true</isPasswordChangeable>
<!--Optional:-->
<CustomAttributeList>
<CustomAttribute>
<Name>test1</Name>
<Value>value1</Value>
</CustomAttribute>
</CustomAttributeList>
<!--Optional:-->
<certAlias></certAlias>
<!--Optional:-->
<certPassword></certPassword>
</prot:CreateUser>
Output
User created successfully.
<ns2:CreateUserResponse xmlns:ns2="http://dsws.org/protectappws/">User created successfully.</ns2:CreateUserResponse>