Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Jira server throws there is no ID mapped for the user key error


sometimes our jira environment is slow, so i analysed the error log.

we have 110 times the error " Jira server throws there is no ID mapped for the user key error" and i followed the instruction on the knowledgebase:

our error:

2020-10-20 12:06:28,820+0200 http-nio-80-exec-8 ERROR anonymous 726x14993x1 10lksn4 /CSAction!save.jspa [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.jira.event.issue.IssueEvent@315c9fdc[issue=HEL-722,comment=com.atlassian.jira.issue.comments.CommentImpl@6df12b10,worklog=<null>,changelog=<null>,eventTypeId=6,sendMail=true,params={eventsource=action, baseurl=http://xxxxx},subtasksUpdated=false,spanningOperation=Optional.empty]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.jira.bc.issue.watcher.AutoWatchService.onIssueEvent(com.atlassian.jira.event.issue.IssueEvent), listener=com.atlassian.jira.bc.issue.watcher.AutoWatchService@52c10698}]
java.lang.RuntimeException: There is no ID mapped for the user key 'admin'. Listener: com.atlassian.jira.bc.issue.watcher.AutoWatchService event: com.atlassian.jira.event.issue.IssueEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.lambda$null$0(
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(
at com.atlassian.event.internal.LockFreeEventPublisher$Publisher.dispatch(
at com.atlassian.event.internal.LockFreeEventPublisher.publish(
at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishEventIfNotificationsAreEnabled(
at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishEvent(
at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishAsRedundant(
at com.atlassian.jira.event.issue.DefaultIssueEventManager.dispatchRedundantEvent(
at com.atlassian.jira.issue.comments.CommentEventPublisherImpl.publishCommentCreatedEvent(
at com.atlassian.jira.issue.comments.DefaultCommentManager.create(
at com.atlassian.jira.issue.comments.DefaultCommentManager.create(
at com.atlassian.jira.issue.comments.DefaultCommentManager.create(
at com.atlassian.jira.issue.comments.DefaultCommentManager.create(
at com.atlassian.jira.issue.comments.DefaultCommentManager.create(
at com.atlassian.jira.issue.comments.DefaultCommentManager.create(
at com.atlassian.jira.issue.comments.DefaultCommentManager.create(
at ru.teamlead.jira.plugins.cs.actions.CSAction.doExecute(
at ru.teamlead.jira.plugins.cs.actions.CSAction.doSave(
... 3 filtered
at java.lang.reflect.Method.invoke(
at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(
at webwork.util.InjectionUtils.invoke(
... 2 filtered
at com.atlassian.jira.action.JiraActionSupport.execute(
... 7 filtered
at javax.servlet.http.HttpServlet.service(
... 52 filtered
... 4 filtered
... 3 filtered
at com.atlassian.diagnostics.internal.platform.monitor.http.HttpRequestMonitoringFilter.doFilter(
... 8 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(
... 57 filtered
... 1 filtered
... 39 filtered
at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(
... 10 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(
... 4 filtered
at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(
... 29 filtered
at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(
... 25 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$
Caused by: java.lang.IllegalStateException: There is no ID mapped for the user key 'admin'
at com.atlassian.jira.user.DefaultUserPropertyManager.getPropertySetForUserKey(
at com.atlassian.jira.user.DefaultUserPropertyManager.getPropertySet(
at com.atlassian.jira.user.preferences.DefaultUserPreferencesManager.getExtendedPreferences(
at com.atlassian.jira.bc.issue.watcher.AutoWatchService.isAutoWatchEnabledForUser(
at com.atlassian.jira.bc.issue.watcher.AutoWatchService.shouldAutoWatchEvent(
... 2 filtered
at java.lang.reflect.Method.invoke(
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(
... 281 more


sql command is

SELECT * from userassociation WHERE association_type = 'WatchIssue'
AND source_name = 'admin'

and the result was NULL


-> If the query above returns any results, please proceed to the next steps. Otherwise, contact Atlassian Support.

1 answer

0 votes
Andy Heinzer Atlassian Team Oct 22, 2020

Hi Sandro,

Thanks for the detailed log here.  I can see that Jira does not appear to have a username entry for the user_key of admin on your system.  While the KB you referenced does appear to be correct for this problem, I'm curious to learn more here to see if we can better understand the source of this error.

I'd be interested to see if you can run the following SQL command to try to directly identify any accounts that might exist in the app_user table that are not correctly referenced in the cwd_user table.  You can do this in a Postgres database with the statement of:

SELECT lower_user_name FROM cwd_user
WHERE lower_user_name NOT IN (
SELECT lower_user_name FROM app_user

I'm expecting that you will get back at least one entry here.  If you do, then I'd recommend checking out a different article over in Jira throws error user exists but has no unique key mapping on login.  This article is a bit broader as it tries to encompass multiple causes for this kind of error.  You should be able to follow the steps in that KB as a means to resolve this.  However if you have any questions or concerns about your results or the correct steps to fix this, please let me know more about your results and I will try to offer more concise troubleshooting steps to try to follow.


Hi Andy,

result is NULL :)



Andy Heinzer Atlassian Team Oct 23, 2020

Could you please let me know the exact version of Jira this is?  The post seems to indicate that it's 8.9, but I'd like to be certain if this a 8.9.0, 8.9.1, etc.

Also what type for SQL database are you using for Jira here?  (postgresql, mysql, oracle, or Microsoft SQL?)  In some cases, the database type can influence how these queries need to be formatted.


I would also be interested if you can post the results to these three queries as well:

select count(*) from app_user;

select count(*) from cwd_user;

select count(*) from cwd_directory;

The cwd_directory table tells us about the user directories you have in Jira.  If all the users are in a single directory, then I would expect that the count from app_user and cwd_users should be equal.  However if you have multiple user directories, then it is very likely that these two tables will have different values.  This is because if a user account could exist by the same name in multiple user directories, but this does not create a new entry in app_user table.  Typically when I have seen this particular error message, it is because some missing or corrupted entry in the app_user table of the database.

Do you have any results for this query?

select * from app_user where user_key like '%admin%' OR lower_user_name like '%admin%';

Please let me know the results.


Hi Andy,

we are using Jira Core 8.9.0 with a MSSQL on a other server running on the version 13.0.5622.0

select count(*) from app_user;  -> 8093

select count(*) from cwd_user; -> 313

select count(*) from cwd_directory; -> 2

we are using the internal user database of jira and the active directory server.


select * from app_user where user_key like '%admin%' OR lower_user_name like '%admin%';  -> result is 59 rows do you need any details of this result?
Andy Heinzer Atlassian Team Oct 28, 2020

Thanks for this info, perhaps that last query was too broad. 59 is more than I expected here. Let's just try to reverse the lookup of a previous query.  Try:

SELECT * FROM app_user
WHERE lower_user_name NOT IN (
SELECT lower_user_name FROM cwd_user

Basically we are looking for a malformed entry in the app_user table here.  Jira believes there should be a user account that has a user_key of 'admin'.  But figuring out exactly which account should have that can be tricky. 

If accounts have never been renamed, then it should just be a user with the username of admin, but when accounts get renamed in Jira, that username can change while the user_key is expected to remain the same throughout the life of that account (Jira 8.3 and later rolled out a means to anonymize user_key values to meet GDPR compliance, but that process should not cause this error.)

I'm also concerned that the SQL syntax might just be slightly different for MS SQL, versus Postgresql where I'm testing out this.  I would have expected a previous SQL query to return an account here but it did not.

Let me know the results.


Suggest an answer

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

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

169 views 1 6
Read article

Atlassian Community Events