Re: [Dev] How to add a SCIM user to secondary userstore
Hi, I will apply SP and try again. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to add a SCIM user to secondary userstore
Hi Ushani, Yes I reffered the same doc you shared, I did the claim mapping. On Thu, Jul 23, 2015 at 11:08 AM, Ushani Balasooriya ush...@wso2.com wrote: 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 ud...@wso2.com 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ushani Balasooriya* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; +94772636796 -- 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to add a SCIM user to secondary userstore
Hi Udara, Is the given command you tried for primary user store? Can you please try in the below format for secondary user store as explained in this doc [1] curl -v -k --user admin:admin --data {schemas:[],name:{familyName: kahawala,givenName:venura},userName:'demo.com/venura',password: testPwd123} --header Content-Type:application/json https: //localhost:9443/wso2/scim/Users [1] https://docs.wso2.com/display/IS500/Provisioning+Users+to+Secondary+User+Stores+Using+SCIM On Thu, Jul 23, 2015 at 11:44 AM, Udara Liyanage ud...@wso2.com wrote: Hi Ushani, Yes I reffered the same doc you shared, I did the claim mapping. On Thu, Jul 23, 2015 at 11:08 AM, Ushani Balasooriya ush...@wso2.com wrote: 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 ud...@wso2.com 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ushani Balasooriya* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; +94772636796 -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- *Ushani Balasooriya* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; +94772636796 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to add a SCIM user to secondary userstore
Hi Udara, For sending user for a secondary user store, following is the correct format. userName:udaraad/hasinit I have used this to add uses via SCIM to JDBC secondary user store. Can you please check this with SP applied to IS 5.0.0? Thanks On Thu, Jul 23, 2015 at 11:55 AM, Ushani Balasooriya ush...@wso2.com wrote: Hi Udara, Is the given command you tried for primary user store? Can you please try in the below format for secondary user store as explained in this doc [1] curl -v -k --user admin:admin --data {schemas:[],name:{familyName: kahawala,givenName:venura},userName:'demo.com/venura',password: testPwd123} --header Content-Type:application/json https: //localhost:9443/wso2/scim/Users [1] https://docs.wso2.com/display/IS500/Provisioning+Users+to+Secondary+User+Stores+Using+SCIM On Thu, Jul 23, 2015 at 11:44 AM, Udara Liyanage ud...@wso2.com wrote: Hi Ushani, Yes I reffered the same doc you shared, I did the claim mapping. On Thu, Jul 23, 2015 at 11:08 AM, Ushani Balasooriya ush...@wso2.com wrote: 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 ud...@wso2.com 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ushani Balasooriya* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; +94772636796 -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- *Ushani Balasooriya* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; +94772636796 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Chamila Dilshan Wijayarathna,* Software Engineer Mobile:(+94)788193620 WSO2 Inc., http://wso2.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to add a SCIM user to secondary userstore
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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to add a SCIM user to secondary userstore
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 ud...@wso2.com 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 Dev@wso2.org 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev