The SCIM (System for Cross-Domain Identity Management) specification defines a fixed set of default attributes for the user object. This set is defined to ensure the interoperability and it can cater to most of the industry's identity management requirements. Given below is a sample user object with the default attributes set.
However the SCIM specification itself introduces the Enterprise User Extension to support extra attributes for the SCIM user object.
However the reality in the industry is that organizations have their own attributes defined for the users. These attributes are already there in their LDAP schemas. Therefore SCIM should be extensible enough to cope with these custom attributes of the users.
WSO2 Identity Server allows users to define their own user schema in a configuration file (
[IS-HOME]/repository/conf/scim-schema-extension.config). Then these configured schema are used while creating, validating user objects. With this the users can pass their custom attributes of users over SCIM for Identity Management requirements. The implementation is adhering to the Schema Extension Model. Given below is a sample extended user object with the default schema configuration.
- Locate the provisioning-config.xml file in the path
- Open the file and locate the "user-schema-extension-enabled" property and set it to true.
- Save the file and restart the server.
Log into the Identity Server and do the claim mapping for the following claim URIs (see here for more information on how to do claim mappings).
Now the server is up and running with the new extended user schema. The claim mappings can map the SCIM user attributes to the LDAP user attributes.
Create a new user with the new schema. The following screen depicts the user to be added with the wso2Extension attributes.
The following is the cURL command to add a user:
Note that the user name is preceded by the domain and is within single quotes 'mysql/uresh67'. Also note that 'mysql' here is a reference to a domain name.
The above command provides the following result:
The created SCIM user object can be viewed in the following screen: