I am trying to check whether a user is already registered in my community. I have found an appropriate API method for this:
I am using it like so:
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?
Solved! Go 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.
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.
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.