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:
// Always Hide
0
To remove Login Button using Scriptrunner:
import com.atlassian.jira.component.ComponentAccessor
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
if (user) {
return 1
} else {
return 0
}
Thanks! Great work!
Thanks for sharing :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.