Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Captcha - Jira data center

Liran
Contributor
October 11, 2023

Hi all

First - my product is Jira data center.

there is a way to find all users with CAPTCHA errors and then reset the failed login count using RESTfull calls or with Scrip runner plugin?

I didn't find anything in the Jira Rest doc

 

Thanks

2 answers

1 accepted

0 votes
Answer accepted
Craig Nodwell
Community Champion
October 11, 2023

Hi @Liran 

Have a look at this post.
Liran
Contributor
October 11, 2023

@Craig Nodwell Thanks craig will doubl-check that.

There is any solution without do some manipulation on DB?

Thanks!

Craig Nodwell
Community Champion
October 11, 2023

None that I'm aware of, someone else might know though.  :)

Liran
Contributor
October 12, 2023

Hi @Craig Nodwell

Please mind Its not working on my instance its not responding no errors but no success as well.

Thanks!

1 vote
Miklos Tix
Contributor
October 12, 2023

Hi @Liran

You can use the following script in script runner console.

You might need to change the group.

 

import com.atlassian.jira.security.login.LoginManager
import com.atlassian.jira.component.ComponentAccessor

def userManager = ComponentAccessor.getUserManager()
def groupManager = ComponentAccessor.getGroupManager()
def loginManager = ComponentAccessor.getComponent(LoginManager)
def groupMembers = groupManager.getUsersInGroup("jira-users") //change the group if needed

for (user : groupMembers){
if (loginManager.getLoginInfo(user.username).elevatedSecurityCheckRequired == true){
loginManager.resetFailedLoginCount(user)
}
}
Liran
Contributor
October 17, 2023

@Miklos Tix 
Thanks!
much appreciated!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events