I am looking for a ScriptRunner Script to find users who have never logged into JIRA. We are over our license and looking to get rid of few users.
Just thought of sharing an up-to-date code from Adaptavist Library (ScriptRunner), who has a script which deactivates users that have never logged in.
Hello,
You can try this one
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.login.LoginManager
def loginManager = ComponentAccessor.getComponent(LoginManager.class);
ComponentAccessor.getUserManager().getAllUsers().each{ it->
if (loginManager.getLoginInfo(it.getKey()) ==null || loginManager.getLoginInfo(it.getKey()).getLoginCount() == 0) {
log.error(it.getKey())
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.
Read the story
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.