It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

The following email address retrieved more than one active user in this Jira instance

Deleted user Jun 11, 2019

In a Jira server (using Crowd) the users are managed with Active Directory.

When I perform this REST GET call via the browser

https://jira.myserver.dom/rest/api/2/user/search?username=username@domain.dom

I get the expected answer, but if I perform the same call via Java code I get the following error:

The following email address retrieved more than one active user in this Jira instance: username@domain.dom

Any idea of where this error message is coming from?

Thanks

Francesco

4 answers

Hmm, the email address is not unique in Jira, it means that you can register an account with a unique username but the same email address.

I assume that the API is returning the latest entry and it is supposed to return only one entry.

Deleted user Jun 24, 2019

Yes you're right, the email address is not unique in Jira server.

I have then created more that one user with the same email address but I get the whole list of users without any error when using

https://jira.myserver.dom/rest/api/2/user/search?username=username@domain.dom

I don't know how to test if it can be somehow related to the Crowd/AD integration

FYI...

Multiple users per email address can lead to some confusion. When you use the Jira feature to create or comment Jira issues from an email account, the code that polls the email inbox to read incoming messages and create or comment Jira issues, makes some assumptions based on email addresses. For example the message to Jira is normally addressed to "jira@abc.com" or something like that in the message "to" field, but, a "cc" field can be configured to become the assignee of an issue created from an email.

When that is done the assumption is that the first matching email address returned from a directory is the match for the assignee. When there are multiple users with one email address this can look kind of arbitrary and/or can end up being "not what was intended."

Anyway it is a subtle feature that can take some time to troubleshoot.

Are you asking why calling the API via the browser responds differently than calling it from code?

0 votes
geek squad12 I'm New Here Monday

Geek squad tech support gives the best technical services. It was founded by Robert Stephens in 1994.they just started their company by giving only computer-related service. I got lots off information from your site it's a very good site. https://geeksquadtechsupport1.doodlekit.com/ 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Jira Cloud for Google Sheets: Automatically Refresh Your Data!

Remember that time you realized it was possible to refresh your Jira data in Google sheets with just one click? What if we told you that you can now get the latest data with no clicks at all?! Zero! ...

316 views 3 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you