Description
The UM_CreateUserExtended service allows you to create a user without logging into Skillport. This service supports core and custom user profile fields and offers the following advantages:
Note: You cannot create super administrators with this service.
Using the Service
Before running this service, consider the following:
Inputs
Parameter |
Required |
Description |
customerId |
|
Enter the company sname. |
userName |
X |
Enter a name for the user. The following conditions apply:
The following is a list of reserved words that are invalid: add, all, block, count, down, force, link, mount, off, simple, tag, up |
password |
|
Enter a password for the user. The following conditions apply:
Multi-byte characters are invalid (Multi-byte characters include letters of the alphabet in Asian languages such as Chinese, Japanese, and Korean). |
manager |
|
Enter an Approval Manager for the user. The value must match the username of an existing user. |
userRole |
|
Optional field. Specify a user role for the user. Valid values are:
The following conditions apply:
|
groupCode |
X |
Specify group memberships for the user. To add the user to more than one group, use a comma delimited list. For example: groupCode1,groupCode2,groupCode3 |
language |
|
The specified value must be a valid language code. Currently supported language codes include:
Language codes are case-insensitive. Note: If this feature is not enabled, entering a value in this field produces an error. |
profileFieldValues |
|
Enter values for both core and custom user profile fields. Core User Profile Fields:
Note: If First Name or Last Name values are not provided, the value in the username field is used. Custom User Profile Fields Custom user profile fields are either defined by administrators or upgraded from an earlier Skillport version. Custom fields can have the following data types:
Custom fields use XML, and should be formatted as follows: <profileFieldValues> <fieldValue id="{FieldId1}"> <value>{FieldValue1}</value> </fieldValue> <fieldValue id="{FieldId2}"> <value>{FieldValue21}</value> <value>{FieldValue22}</value> </fieldValue> </profileFieldValues> Note: If {fieldValue..} contains special characters, wrap it with "CDATA", such as:
Example <profileFieldValues> <fieldValue id="_sys_firstname"> <value>Jeff</value> </fieldValue> <fieldValue id="address1"> <value>><![CDATA[500 Canal View Blvd]]></value> </fieldValue> <fieldValue id="dept_code"> <value>12345</value> </fieldValue> <fieldValue id="state"> <value>NY</value> <value>NH</value> </fieldValue> </profileFieldValues> |
Success Response(s)
XML response (restype=1):
<_BCS_RESULT id="10100102" status="success">
<message>User<username> has been created.</message>
</_BCS_RESULT>
Enhanced XML response (restype=2):
<result success="1"/>
Additional Faults
The following table lists the faults this service may produce, the fault string, and possible causes for the fault.
Fault |
Condition (response <faultstring>) |
Possible Cause |
GeneralFault |
Group Code must be specified |
The |
Error: The language selection is not available. Please check your database settings. |
The |
|
Error: Approval Manager selection is not available. Please check your database settings. |
The |
|
Error: User Name field is too long. Max 255 characters. |
The value in the |
|
Error: password - The value of the field cannot exceed 255 characters. |
The value in the |
|
Error: You must enter a username |
The |
|
Error: User Role must be 'COMPANY_ADMIN', 'ADMIN', 'MANAGER', or 'END_USER'. |
The |
|
Error: |
The |
|
Error: Approval manager name is not valid. |
The value in the |
|
Error: Field1 - The value of the field cannot exceed 255 characters. |
The value entered is too long. |