You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by Antony Pulicken <an...@gmail.com> on 2012/03/14 13:58:30 UTC

Searching user based on Username

Hi,

I'm not able to search and retrieve the users based on 'Username' in
syncope-0.7.1. There are no records in 'user_search_attr' table where
schema_name is 'Username'.  I'm able to search on other attributes like
firstname, surname, email and other custom attributes that I created.
Please let us know your thoughts.

Regards,
Antony.

Re: Searching user based on Username

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 15/03/2012 04:29, Antony Pulicken wrote:
> You are right. I could easily derive it from the example that you 
> provided and it works. Thanks again !!

You're welcome :-)
Regards.

> 2012/3/14 Francesco Chicchiriccò <ilgrosso@apache.org 
> <ma...@apache.org>>
>
>     On 14/03/2012 14:59, Antony Pulicken wrote:
>>     Thanks Francesco. Is it possible to search user just using the
>>     'Username' ? Do you have a test case for that ?
>
>     You can absolutely search an user only by username.
>     You could easily derive how from the example provided.
>     Regards.
>
>
>>     2012/3/14 Francesco Chicchiriccò <ilgrosso@apache.org
>>     <ma...@apache.org>>
>>
>>         On 14/03/2012 13:58, Antony Pulicken wrote:
>>>         Hi,
>>>
>>>         I'm not able to search and retrieve the users based on
>>>         'Username' in syncope-0.7.1. There are no records in
>>>         'user_search_attr' table where schema_name is 'Username'. 
>>>         I'm able to search on other attributes like firstname,
>>>         surname, email and other custom attributes that I created.
>>>         Please let us know your thoughts.
>>
>>         Hi Antony,
>>         please take a look at [1] (take out from 0.7.1 integration
>>         tests) searchByUsernameAndId() that's doing what you want.
>>
>>         Regards.
>>
>>         [1]
>>         https://syncope.googlecode.com/svn/tags/syncope-0.7.1/core/src/test/java/org/syncope/core/rest/UserTestITCase.java
>>
-- 
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/


Re: Searching user based on Username

Posted by Antony Pulicken <an...@gmail.com>.
You are right. I could easily derive it from the example that you provided
and it works. Thanks again !!

Regards,
Antony.

2012/3/14 Francesco Chicchiriccò <il...@apache.org>

>  On 14/03/2012 14:59, Antony Pulicken wrote:
>
> Thanks Francesco. Is it possible to search user just using the 'Username'
> ? Do you have a test case for that ?
>
>
> You can absolutely search an user only by username.
> You could easily derive how from the example provided.
> Regards.
>
>
> 2012/3/14 Francesco Chicchiriccò <il...@apache.org>
>
>>  On 14/03/2012 13:58, Antony Pulicken wrote:
>>
>> Hi,
>>
>> I'm not able to search and retrieve the users based on 'Username' in
>> syncope-0.7.1. There are no records in 'user_search_attr' table where
>> schema_name is 'Username'.  I'm able to search on other attributes like
>> firstname, surname, email and other custom attributes that I created.
>> Please let us know your thoughts.
>>
>>
>>  Hi Antony,
>> please take a look at [1] (take out from 0.7.1 integration tests)
>> searchByUsernameAndId() that's doing what you want.
>>
>> Regards.
>>
>> [1]
>> https://syncope.googlecode.com/svn/tags/syncope-0.7.1/core/src/test/java/org/syncope/core/rest/UserTestITCase.java
>>
>  --
> Francesco Chicchiriccò
>
> Apache Cocoon PMC and Apache Syncope PPMC Memberhttp://people.apache.org/~ilgrosso/
>
>

Re: Searching user based on Username

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 14/03/2012 14:59, Antony Pulicken wrote:
> Thanks Francesco. Is it possible to search user just using the 
> 'Username' ? Do you have a test case for that ?

You can absolutely search an user only by username.
You could easily derive how from the example provided.
Regards.

> 2012/3/14 Francesco Chicchiriccò <ilgrosso@apache.org 
> <ma...@apache.org>>
>
>     On 14/03/2012 13:58, Antony Pulicken wrote:
>>     Hi,
>>
>>     I'm not able to search and retrieve the users based on 'Username'
>>     in syncope-0.7.1. There are no records in 'user_search_attr'
>>     table where schema_name is 'Username'.  I'm able to search on
>>     other attributes like firstname, surname, email and other custom
>>     attributes that I created. Please let us know your thoughts.
>
>     Hi Antony,
>     please take a look at [1] (take out from 0.7.1 integration tests)
>     searchByUsernameAndId() that's doing what you want.
>
>     Regards.
>
>     [1]
>     https://syncope.googlecode.com/svn/tags/syncope-0.7.1/core/src/test/java/org/syncope/core/rest/UserTestITCase.java
>
-- 
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/


Re: Searching user based on Username

Posted by Antony Pulicken <an...@gmail.com>.
Thanks Francesco. Is it possible to search user just using the 'Username' ?
Do you have a test case for that ?

Regards,
Antony.

2012/3/14 Francesco Chicchiriccò <il...@apache.org>

>  On 14/03/2012 13:58, Antony Pulicken wrote:
>
> Hi,
>
> I'm not able to search and retrieve the users based on 'Username' in
> syncope-0.7.1. There are no records in 'user_search_attr' table where
> schema_name is 'Username'.  I'm able to search on other attributes like
> firstname, surname, email and other custom attributes that I created.
> Please let us know your thoughts.
>
>
> Hi Antony,
> please take a look at [1] (take out from 0.7.1 integration tests)
> searchByUsernameAndId() that's doing what you want.
>
> Regards.
>
> [1]
> https://syncope.googlecode.com/svn/tags/syncope-0.7.1/core/src/test/java/org/syncope/core/rest/UserTestITCase.java
>
> --
> Francesco Chicchiriccò
>
> Apache Cocoon PMC and Apache Syncope PPMC Memberhttp://people.apache.org/~ilgrosso/
>
>

Re: Searching user based on Username

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 14/03/2012 13:58, Antony Pulicken wrote:
> Hi,
>
> I'm not able to search and retrieve the users based on 'Username' in 
> syncope-0.7.1. There are no records in 'user_search_attr' table where 
> schema_name is 'Username'.  I'm able to search on other attributes 
> like firstname, surname, email and other custom attributes that I 
> created. Please let us know your thoughts.

Hi Antony,
please take a look at [1] (take out from 0.7.1 integration tests) 
searchByUsernameAndId() that's doing what you want.

Regards.

[1] 
https://syncope.googlecode.com/svn/tags/syncope-0.7.1/core/src/test/java/org/syncope/core/rest/UserTestITCase.java 


-- 
Francesco Chicchiriccò

Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/