How to log a list of licensed users

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.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Purpose

Currently it can be difficult to determine which users are taking up a Confluence license seat. This workaround allows you to see a list of users currently consuming a license. 

This workaround is available from Confluence 7.0.2 and later. It has also been backported to 615.10, and the 6.6.17 and 6.13.9 Enterprise Releases. 

Solution

To obtain a list of licensed Confluence users:

  1. Go to  > General Configuration > Logging and Profiling.
  2. Add an entry for com.atlassian.confluence.user.DefaultUserAccessor  and set the level to DEBUG. 

  3. Tail your <home-directory>/logs/atlassian-confluence-security.log file. 
  4. Go to  > General Configuration > License details.
  5. Under Licensed users, choose Refresh

  6. In the log file, look for a line similar to the following:

    2019-09-17 10:36:34,271 DEBUG [read-only-transaction:thread-1] [atlassian.confluence.user.DefaultUserAccessor] getUserNamesWithConfluenceAccess Found 3 licensed users: [user1, user2, user3] 

See Configuring Logging for more information on changing the logging and profiling settings in Confluence. 

Good to know

  • This workaround may have a performance impact on your site. You should remove the com.atlassian.confluence.user.DefaultUserAccessor entry once you've successfully written the list of users to the log file
  • Usernames will be written to your logs in plain text. This may have privacy implications for your site. If you ever need to remove personally identifiable information you'll need to also remove it from the log files.  


DescriptionWrite a list of all licensed Confluence users to the application log.
ProductConfluence

Last modified on Jan 18, 2022

Was this helpful?

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