Hi Udara,
Have you done the claim mapping correctly?
E.g.,
urn:scim:schemas:core:1.0:id -
homePostalAddress;udaraad/homePostalAddress;
Then the command should be as below : Please refer [1]
curl -v -k --user admin:admin --data "{"schemas":[],"userName":'udaraad
/user1',"password":"Wso2@123"}" --header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Users
[1]
https://docs.wso2.com/display/IS500/Provisioning+Users+to+Active+Directory+User+Store+Using+SCIM
On Thu, Jul 23, 2015 at 10:59 AM, Udara Liyanage <[email protected]> wrote:
> Hi,
>
> I used below REST call to create a SCIM user. This create a users in
> primary userstore sucesfully. I want to how to create the user in my
> secondary userstore (AD) which has domain name "udaraad".
>
> curl -v -k --user admin:admin --data
> "{"schemas":[],"name":{"familyName":"gunasinghe","givenName":"hasinitg"},"userName":'hasinit',"password":"hasinitg","emails":[{"primary":true,"value":"
> hasini_home.com","type":"home"},{"value":"hasini_work.com","type":"work"}]}"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Users
>
> I tried with following combinations and found no luck and encountered
> below error response. But still no error message is shown in Carbon logs
> which should.
>
> "userName":'udaraad/hasinit'
> "userName":'udaraad\/hasinit'
> "userName":"udaraad/hasinit"
> "userName":"udaraad//hasinit"
>
> {"Errors":[{"description":"Error in adding the user: udaraad/hasinit to
> the user store..","code":"500"}]}
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev