User Manager

When the CCM API is used in a remote client, it requires the appropriate authentication and authorization for it to exercise the corresponding functionality.

User Manager Classes

This section lists and briefly describes the classes in User Manager. For more details, refer to the Javadoc.

Behavior with Multi-Valued Attributes

The CCM API supports the LDAP concept of multi-valued attributes. To add initial or additional values to a multi-valued attribute, something similar to the following code example needs to be used:

Copy
EnrollmentDataValue[] addData = {
new EnrollmentDataValue("favFruit","orange"), new EnrollmentDataValue("favFruit","apple") };
userMgr.addEnrollmentData(userId, addData);

For this example, there are two enrollment attributes that have the same ID, favFruit. In retrieving favFruit using the getEnrollmentData method, there are two entries with the same ID. However, they have different values that would be returned (as shown in this code example).

To delete an individual value from the list of values for favFruit:

Copy
String delData[] = { "favFruit~apple" };
userMgr.deleteEnrollmentData(userId, delData);

The tilde (~) denotes the value of an EnrollmentDataValue. The left side of the ~ shows the enrollment data ID. The right side of the ~ identifies the value to be removed. The tilde notation can also be used with the addEnrollmentData method, as shown in the following example:

Copy
EnrollmentDataValue[] addData3 = {
new EnrollmentDataValue("favFruit~lemon","apple") };
userMgr.addEnrollmentData(userId, addData3);

In this example, the ~ is interpreted as a replace. To delete all values from an attribute, treat the multi-valued attribute enrollment data the same as any other normal enrollment data item. An attribute's schema must have been declared as multi-valued before you can use these features. Otherwise, CCM treats it like a normal single-valued attribute.

User Manager Methods

This section lists and briefly describes the methods in User Manager. For more details, refer to the Javadoc.

Note: For related error codes, see Maximum Session Error Codes. For specific error codes, see Communication and Connectivity Error Codes.