Why this API only shows 1 account?

Hello,

I used this API to retrieve an accountId

https://domain.net/rest/api/3/user/bulk/migration?key=hoc

There is also another API which shows more than 1 accountId for the same user

https://domain.net/rest/api/3/groupuserpicker?query=query{hoc}

What is the difference? On my end it seems the first one only returns 95% of the time an account with a certain email address like @hello.com

Anyone able to shed some light?

Thanks

This is an image of the 2nd API I used which as you can see shows me more than 1 account using the same name ‘Hoc’

Hi @hocngo,

Sorry for being slow to get to this. The first API matches by user key or username and was introduced to help apps migrate away from their dependency on user keys and usernames to improve privacy (a GDPR project). The second API performs more liberal searching for users that is more appropriate to populate a “user picker” functionality.

Regards,
Dugald