Description
The UM_EditUserExtended service allows you to edit a user profile without logging into Skillport. This service supports core and custom user profile fields and offers the following advantages:
Using the Service
Before running this service, consider the following:
Inputs
Paramter |
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). |
newUsername |
|
Use this field to change the user's username. |
manager |
|
|
userRole |
|
Optional field. Specify a user role for the user. Valid values are:
The following conditions apply:
|
active |
|
Use this field to activate or deactivate the user. Valid values are 0 or 1. |
groupCode |
|
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 |
siteLanguage |
|
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="10100103" status="success">
<message>User <username> has been updated.</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
|
Error: User Role must be 'COMPANY_ADMIN', 'ADMIN', 'MANAGER', or 'END_USER'. |
Invalid |
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: testField1 does not exist. |
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 in the |
|
Error: User not updated - nothing to update. |
The value in the |
|
Error: A user with this username already exists. |
The value in the |
|
ObjectNotFoundFault |
Error: Target User userX does not exist, or is not in Source Users Scope. |
The user |