User.Create
Creates a user with the given information.
Parameters and required information
Here's a list of all the parameters you'll need to pass to the User.Create method. All of the parameters are required unless otherwise noted.
SessionKey- The session key obtained from User.Login
Username- username of the user to be created
Password- the password for the new user
FirstName- The users first name
LastName- The users last name
Email- The users email address
Address1- The users address
Address2- The users address, this is not required
City- The users city
State- The users state
Zip- The users zip code
Role- The users role in the system, this is not required and defaults to "client" (admin,contributor,client,projectmanager)
Return Codes
Success
Status: success- Returns the newly created user.
Status: fail- The call was not successful. Either the session has expired or the XML was not formatted correctly.
Error
-
5002: Authentication Failure
- No active session exists with this session key and developer account id. The user session has expired and the user has to to log on again.
-
101: The USERNAME attribute is required in the USER.CREATE function
- The USERNAME was not passed along.
-
101: The PASSWORD attribute is required in the USER.CREATE function
- The PASSWORD was not passed along.
-
101: The FIRSTNAME attribute is required in the USER.CREATE function
- The FIRSTNAME was not passed along.
-
101: The LASTNAME attribute is required in the USER.CREATE function
- The LASTNAME was not passed along.
-
101: The EMAIL attribute is required in the USER.CREATE function
- The EMAIL was not passed along.
-
101: The ADDRESS1 attribute is required in the USER.CREATE function
- The ADDRESS1 was not passed along.
-
101: The CITY attribute is required in the USER.CREATE function
- The CITY was not passed along.
-
101: The STATE attribute is required in the USER.CREATE function
- The STATE was not passed along.
-
101: The ZIP attribute is required in the USER.CREATE function
- The ZIP was not passed along.
-
505: Restricted - This user is not authorized to create users
- This user is not authorized to create a user.
HTTP POST
<?xml version="1.0" encoding="utf-8"?> <request> <sessionkey>string</sessionkey> <username>string</username> <password>string</password> <firstname>string</firstname> <lastname>string</lastname> <email>string</email> <address1>string</address1> <city>string</city> <state>string</state> <zip>string</zip> </request>
<?xml version="1.0" encoding="utf-8"?> <mediasilo_response method="User.Create" status="success"> <user> <id>integer</id> <username>string</username> <password>string</password> <firstname>string</firstname> <lastname>string</lastname> <email>string</email> <address1>string</address1> <city>string</city> <state>string</state> <zip>string</zip> </user> </mediasilo_response>
