cancel
Showing results for 
Search instead for 
Did you mean: 

Get Lite Account Details Using UID

Eldhos
Participant
0 Kudos
722

Hi Team,

How can we get Lite User information using UID?

Regards,

Eldhos Kurian

View Entire Topic
SebastianSchuck
Active Participant

Hey eldhos,

you should be able to fetch the account info via accounts.search with a query like

SELECT * FROM emailAccounts WHERE UID = "<UID>"

Best,

Sebastian Schuck

Eldhos
Participant
0 Kudos

Hi Seb,

Accounts.search has very limited API call rates per second. Hence Is there any other choice ?

Regards,

Eldhos

SebastianSchuck
Active Participant
0 Kudos

Hey Eldhos,

you may also be able to use accounts.getAccountInfo, but it does not work in all scenarios with lite accounts.

Best,
Sebastian

Oleh_Ilchyshyn
Active Participant

Hi eldhos,

Just let you know that now CDC Supports Custom Identifiers.
Not sure if it works for your case(for lite accounts - please check), but it is a good feature that CDC Released, that gives a capability to call accounts.getAccountInfo not only with UID, but with email, username, etc... and with custom-created identifiers.

You can find it under the new findBy parameter.

Eldhos
Participant
0 Kudos

Hi Oleh,

Based on your comment, I tried to get User information via email, & profile.email. But I am getting response as in the screenshot. Kindly help

SebastianSchuck
Active Participant

You need to look up the email via the findBy parameter (JSON Object), e.g findBy= {"_email": "email@emaple.org"} 😉

Eldhos
Participant
0 Kudos

Hi sschuck

I have tried as well, However, This is working with Registered User , But It is not working for Lite User .

Can You help me here ?

olehi94 Do you have any additional suggestion

Regards

Eldhos

Oleh_Ilchyshyn
Active Participant

Hi eldhos,

If the question is "Get Lite Account Details Using UID", the solution, that Sebastian provided is only the right one.

There is another option to get Lite Account Details, but using an email. You should call 2 subsequent APIs:
- accounts.getLiteToken - This method will return a regToken, that can be used for getAccountInfo for a lite user.
- accounts.getAccountInfo

In the second option API call rates are much higher, but not meet your requirement to Get Lite Account Detauls using UID.