1

Before adding a new person, I issue the viewPerson command to search for them based on email address. Copying the email address of an existing user and pasting it into the command strings below I get back a null set when I should get back the user.

cmd=viewPerson&sEmail=brandy.cangelosi@ddb.com&token=[removed]
cmd=viewPerson&sEmail=brandy.cangelosi%40ddb.com&token=[removed]

I have tried it with the email URLENCODED and not, and with the email address all lower case (shown above) and with the case matching what is in FogBugz.

Fog Creek Case FC1919713

flag

3 Answers

3

The viewPerson command does not find virtual users, community users and inactive users.

link|flag
Sorry, but this is just not true. I have been able to get community, virtual, and inactive users from the XML API in my tests. Are you on an old version? – Rich Armstrong Jul 19 2010 at 20:34
I am finding these users via ixPerson, not via email, but I can get them just fine. – Rich Armstrong Jul 19 2010 at 20:35
specifying sEmail does not find the users, but ixPerson does. I have a case open to fix the sEmail method. – adambox Jul 20 2010 at 21:07
1

This works fine for me with a string like:

cmd=viewPerson&sEmail=John.Smith@example.com&token=[removed]

so it looks like it doesn't need to be URL-encoded, and case is not an issue.

Did you copy the e-mail address from FogBugz, or might you have entered an alias that FogBugz doesn't know about?

You can also try setting the e-mail address to the name, e.g. sEmail=John%20Smith.

link|flag
0

Why check for the user first via the API? As I recall, adding an existing user via the API returns an error message, so it's a non-destructive operation. And if you're adding users via the FogBugz user interface, you already have a very useful search tool available at your fingertips.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.