Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Guide

Get a user by email using API

Hello Community,

I am trying to check whether a user is already registered in my community. I have found an appropriate API method for this: 

https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&leaf-id=...

I am using it like so:

https://community.mycompany.com/restapi/vc/users/email/example.email@domain.com

However, I am always getting the same response (XML omitted by me): 101 No user with the specified email.  

Adding session key parameter does not help.

What am I doing wrong here?

 
4 Replies 4

For what it's worth, the command, just as you typed it above (except with my community name and a valid email address) works for me.   Try it with your own email address and see if that works.

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.

I just tried it not logged in and get the same error you do.  You have to be logged in in the browser you're using for the command to access the system and work. 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.

Welp, it looks that I were missing a "?" before restapi.session_key. Adding this solved the issue for me. This was just me paying not enough attention.

However being authorized in my browser didn't help me to make a successful call without the session key, not sure whether this this is a bug, an expected behavior or something else.

Interesting.  I don't have to enter a session key.  I just have to be logged in (as an administrator)  I'm glad you got it working anyway. 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.