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

Removing the Log In (upper right) button when using SSO

We're switching over to SSO. We've disabled the Log In screen but if you don't have a SSO account the Log In button in the upper right hand of the screen is still being displayed taking you to the regular log in. Our customer wanted that Log In button disabled, along with the ability to Log Out. Since it took a lot of googling before I figured it out I figured I'd share:

To hide the Log Out button using Scriptrunner:

  1. Scriptrunner → Script Fragments
  2. Click Add New Item -> Hide system or plugin UI element
  3. Enter the following:
    1. Name: Hide Log Out Menu Item
    2. Hide What: jira.webfragments.user.navigation.bar:log_out
    3. Condition:
// Always Hide
0

To remove Login Button using Scriptrunner:

  1. Scriptrunner → Script Fragments
  2. Click Add New Item -> Hide system or plugin UI element
  3. Enter the following:
    1. Name: Remove Login Button
    2. Hide What: com.atlassian.jira.jira-header-plugin:user-menu
    3. Condition:
import com.atlassian.jira.component.ComponentAccessor

def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

if (user) {
return 1
} else {
return 0
}

 

2 answers

0 votes

Thanks for sharing :)

Suggest an answer

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

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

843 views 5 22
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