Hi,

Having a way to check whether a user exists, will be useful for some
scenarios(ex: user sign-up).

We can check user existence from Identity store level, by passing a set of
user claims. And can use the claims to check user existence, since in
identity store level, we can check whether a certain claim URI supported by
the domain and also whether a claim is an unique attribute claim for the
connector. (Please refer PR in [1] )

But for connector level we have attributes. As an example, when we are
adding a user, we are passing a list with attributes[2]. So that in
connector level, we don't have any idea about the unique claims. If there
is a way to identify the unique claim set in connector level, we can check
for duplicate entries in that level and pass an exception.

[1]
https://github.com/wso2/carbon-identity-mgt/pull/119/commits/c36b3b68c6805f25ae1e3b4e9cee8992297bbc57
[2]
https://github.com/wso2-extensions/carbon-security-user-store-jdbc/blob/master/components/org.wso2.carbon.identity.mgt.store.connector.jdbc/src/main/java/org/wso2/carbon/identity/mgt/store/connector/jdbc/connector/JDBCIdentityStoreConnector.java#L521

Thanks and Regards

On Wed, Feb 1, 2017 at 9:08 PM, Prabath Siriwardena <[email protected]>
wrote:

> But.. this is returning back the whole user object...?
>
> Thanks & regards,
> -Prabath
>
>
> On Wed, Feb 1, 2017 at 2:41 AM, Gayan Gunawardana <[email protected]> wrote:
>
>> Hi Prabath,
>>
>> On Wed, Feb 1, 2017 at 1:47 AM, Prabath Siriwardena <[email protected]>
>> wrote:
>>
>>> This seems to be a common requirement and its better to provide an
>>> optimized operation for this.. even at the REST API level ? Do we have one
>>> in SCIM?
>>>
>> From SCIM API level we have this support.
>> https://<host>:<port>/Users?filter=userName+EQ+Prabath
>>
>>
>>> During the user sign up process - people need to see whether the
>>> username is picked by the user is available before asking for the details..
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>> On Thu, Jan 26, 2017 at 11:28 PM, Lahiru Manohara <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> We can use getUser method to check whether the user exists in user
>>>> stores. But do we have any optimized method to do this operation?
>>>>
>>>> Best Regards,
>>>> --
>>>> *Lahiru Manohara*
>>>> *Software Engineer*
>>>> Mobile: +94716561576
>>>> WSO2 Inc. | http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> _______________________________________________
>>>> Architecture mailing list
>>>> [email protected]
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950 <(650)%20625-7950>
>>>
>>> http://facilelogin.com
>>>
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: [email protected]
>> Mobile: +94 (71) 8020933
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950 <(650)%20625-7950>
>
> http://facilelogin.com
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Email    [email protected]
Mobile   0772182255
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to