Khoros Community

Highlighted
Occasional Contributor WORMrus
Occasional Contributor

Get a user by email using API

Jump to solution

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?

 
Tags (2)
0 Kudos
4 Replies 4
Esteemed Contributor
Esteemed Contributor

Re: Get a user by email using API

Jump to solution

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.
0 Kudos
Reply
Loading...
Esteemed Contributor
Esteemed Contributor

Re: Get a user by email using API

Jump to solution

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.
0 Kudos
Reply
Loading...
Occasional Contributor WORMrus
Occasional Contributor

Re: Get a user by email using API

Jump to solution

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.

0 Kudos
Reply
Loading...
Esteemed Contributor
Esteemed Contributor

Re: Get a user by email using API

Jump to solution

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.
0 Kudos
Reply
Loading...