Forum Discussion

jaikumar1's avatar
jaikumar1
Mentor
8 years ago

How to get username from the API?

Hi,   I'm just facing the issue in production, the username is not getting loaded in the API result set. But i'm getting the username in staging server.   As per my understanding, there may be an...
  • TariqHussain's avatar
    TariqHussain
    7 years ago

    jaikumar1- The login name is being returned empty, because either they are the anonymous users which don't have the username or those users haven't completed the registration yet. 

     

    You can try below query which will return only registered online users and they all should have the login name.

     

    http://<communityurl>/restapi/vc/users/online/registered