How to hide logout button in Jira Server home page

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Summary

The information in this page relates to customizations in Jira. Consequently, Atlassian Support cannot guarantee to provide any support for the steps described on this page as customizations are not covered under Atlassian Support Offerings. Please be aware that this material is provided for your information only and that you use it at your own risk.

Also, please be aware that customizations done by directly modifying files are not included in the upgrade process. These modifications will need to be reapplied manually on the upgraded instance.

As a Jira admin, we may need to hide logout button. This KB article speaks about achieving the task using Jira announcement banner

Environment

8.x

Solution

  • Add the below code in the Jira announcement banner

    ⚠️ Adding this will also take out the user avatar icon with all its options.

    1 2 3 4 5 <style> #user-options{ display:none; } </style>
  • This is how it looks before adding the script :

    (Auto-migrated image: description temporarily unavailable)
  • This is how it looks after adding the script:

  • (Auto-migrated image: description temporarily unavailable)

    Please be mindful that tempering with modifying CSS layout in flight might cause Jira to become completely inaccessible to users; That is, the login page might stop operating properly, or certain page elements in Jira will no longer be accessible, such as for example not being able to access the Announcement banner configuration page to remove the faulty code. If that becomes the case please follow the below article to remove the announcement banner via a direct database update: Remove the Jira Data Center announcement banner through the database

Updated on April 24, 2025

Still need help?

The Atlassian Community is here for you.