Hi Isura, Thanks a lot. I corrected my request.
Regards On Tue, May 12, 2015 at 7:57 PM, Isura Karunaratne <is...@wso2.com> wrote: > Corrected curl command. > > curl -v -k --user admin:admin --data "{"schemas":[],"title": "Mr", > "addresses": { "region": "colombo" }, "name": { "familyName": "dhanushka", > "givenName": "gayan" }, "userName": "gayand", "password": "gayandd", > "emails": [ { "primary": true, "value": "gayanl...@gmail.com", "type": > "home" }, { "value": "gay...@wso2.com", "type": "work" } ] }" --header > "Content-Type:application/json" https://localhost:9443/wso2/scim/Users > > > On Tue, May 12, 2015 at 1:55 PM, Isura Karunaratne <is...@wso2.com> wrote: > >> Hi Gayan, >> >> region is a part of address. So your request should be like below. ( >> urn:scim:schemas:core:1.0:*addresses*.region) >> >> curl -v -k --user admin:admin --data "{"schemas":[],"title": "Mr", >> "addresses": { "region": "colombo" }, "name":erName": "gayand", "password": >> "gayandd", "emails": [ { "primary": true, "value": "gayanl...@gmail.com", >> "type": "home" }, { "value": "gay...@wso2.com", "type": "work" } ] }" >> --header "Content-Type:application/json" >> https://localhost:9443/wso2/scim/Users >> >> >> Thanks >> Isura >> >> On Tue, May 12, 2015 at 10:56 AM, Gayan Dhanushka <gay...@wso2.com> >> wrote: >> >>> Hi all, >>> >>> Need some clarity on SCIM claim dialect. >>> >>> I tried to add some claims which are described in "urn:scim:schemas:core:1.0 >>> >>> <https://localhost:9443/carbon/claim-mgt/claim-view.jsp?store=Internal&dialect=urn:scim:schemas:core:1.0>" >>> claim dialect.(e.g. urn:scim:schemas:core:1.0:addresses.region). But It was >>> not getting added. >>> >>> However some claims got set (e.g. urn:scim:schemas:core:1.0:title) >>> >>> *Request* >>> >>> curl -v -k --user admin:admin --data >>> "{"schemas":[],"title":"Mr","region":"colombo","name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","password":"gayan","emails":[{"primary":true,"value":" >>> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com","type":"work"}]}" >>> --header "Content-Type:application/json" >>> https://localhost:9443/wso2/scim/Users >>> >>> >>> *Response* >>> >>> >>> {"id":"b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9","title":"Mr","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"dhanushka","givenName":"gayan"},"userName":"gayan","emails":[{"value":" >>> gayanl...@gmail.com","type":"home"},{"value":"gay...@wso2.com >>> ","type":"work"}],"meta":{"lastModified":"2015-05-12T16:47:40","location":" >>> https://localhost:9443/wso2/scim/Users/b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9 >>> ","created":"2015-05-12T16:47:40"}} >>> >>> Any particular reason for this behavior ? >>> >>> >>> Regards >>> >>> >>> >>> -- >>> Gayan Dhanuska >>> Software Engineer >>> http://wso2.com/ >>> Lean Enterprise Middleware >>> >>> Mobile >>> 071 666 2327 >>> >>> Office >>> Tel : 94 11 214 5345 >>> Fax : 94 11 214 5300 >>> >>> Twitter : https://twitter.com/gayanlggd >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Isura Dilhara Karunaratne >> Senior Software Engineer >> >> Mob +94 772 254 810 >> >> > > > -- > Isura Dilhara Karunaratne > Senior Software Engineer > > Mob +94 772 254 810 > > -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev