Page History
WSO2 Identity Server can act as a SCIM Provider and at the same time it can act as a SCIM consumer. You can test the WSO2 Identity Server's SCIM Provider API as described here. The WSO2 Identity Server build includes the ApacheDS embedded LDAP server. The LDAP server's schema is customized to have the mandatory SCIM attributes, therefore SCIM implementation works out-of-the-box with the WSO2 Identity Server.
...
- Log in to WSO2 Identity Server using your credentials.
- Go to the Main menu in the Management Console menu and click List under Claims.
- Select
urn:scim:schemas:core:1.0
from the Available Claim Dialect list. - Search for userName from the list of claims and note down its Mapped Local Claim.
- Select
http://wso2.org/claims
from the Available Claim Dialect list. - Search for username from the list of claims and click Edit.
- Change the Mapped Attribute value to cn and click Update.
- Edit the other four claims in the same way.
Now the basic claim mapping is done. You can now add a user using the following curl command.
Localtab Group Localtab active true title Primary Userstore Command Code Block curl -v -k --user admin:admin --data "{"schemas":[],"userName":"john","password":"[email protected]"}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
Localtab title Secondary Userstore Command Code Block curl -v -k --user admin:admin --data "{"schemas":[],"userName":'wso2.com/uresh67',"password":"[email protected]"}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
Note that the user name is preceded by the domain and is within single quotes 'wso2.com/uresh67'. Also note that 'wso2.com' here is a reference to a domain name.
In RestClient, the following header parameters must be added and the double quotations must be removed from the message body.
Panel Content-Type: application/json
Accept: */*
Message body
{schemas:[],userName:'wso2.com/uresh67',password:[email protected]}Info You need to do the claim mapping for every SCIM claim you are using with user operations.
Info To find out how to enable extensions for extended attributes in SCIM 2.0, see Extensible SCIM User Schemas with WSO2 Identity Server