Removing a user from a group in the internal directory fails

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.


When removing a user from a group in the internal directory that does not exist in any other user directory, the following error message is shown to the user: No user named "<username>" was found

The same error is returned when deleting the user through the REST API.

With debug logging enabled, a line similar to the following appears in the atlassian-bitbucket.log:

"DELETE /rest/api/1.0/admin/users HTTP/1.1" c.a.s.i.r.e.ServiceExceptionMapper Mapping ServiceException to REST response 404

com.atlassian.bitbucket.user.NoSuchUserException: No user named '<username>' was found


The search for the user should continue until it is found in one of the user directories, but in this case it returns this error before it attempts to search the internal directory.


Move the internal Bitbucket directory above all other user directories, to ensure it checks for the user in this directory first, then delete the user from the group.


Last modified on Oct 24, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.