Hi Supun, Can you have a look at the blog post [1]. The post has explained configuring the scim extension in detail.
[1] - https://medium.com/@Dilshani/scim-extension-in-wso2-is-d30e8b0e8bc6 Thanks, Omindu. On Mon, Jun 5, 2017 at 3:46 PM, Supun Madushanka <[email protected]> wrote: > > > 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: [email protected] > > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Omindu Rathnaweera Senior Software Engineer, WSO2 Inc. Mobile: +94 771 197 211
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
