Hi All,

I am working with WSO2 IS (5.3.0) for one of my projects. I  can
successfully register a user using SCIM. But there are some attributes that
I need which are not provided by SCIM by default. After a bit of search I
found SCIM extension feature provided .So I configured IS according to
following instructions.

https://docs.wso2.com/display/IS530/Extensible+SCIM+User+Sch
emas+With+WSO2+Identity+Server.

When I send the registration request with a custom attribute (in this case
"organization" ), in the immediate response I can find that attribute.

request:

curl -v -k --user admin:admin --data
'{"schemas":[],"userName":"SureshAtt","password":"Wso2@123","wso2Extension":{"organization":"WSO2Org"}}'
--header "Content-Type:application/json"
https://localhost:9446/wso2/scim/Users

response:
{"wso2Extension":{"organization":"WSO2Org"},"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0","urn:scim:schemas:extension:wso2:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}



But when I try to get the user details by user Id using a separate request,
I do not get the custom attribute in the response.

request:
curl -v -k --user admin:admin
https://localhost:9446/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a

response:
{"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}


What could be the possible cause ? please be kind enough to assist.

Thank
-- 
Best Regards,
*Supun Madushanka*
[Undergraduate]
University of Moratuwa. http://www.mrt.ac.lk
Department of Computer Science and Engineering. http://cse.mrt.ac.lk
Mobile: +94 71 1135012 <%2B94%280%29%20711135012>
E-mail: supun...@cse.mrt.ac.lk
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to