Forums

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

Clearing Bitbucket CAPTCHA

Srikanth Bheemunipallywar November 20, 2023

we are using bitbucket server for source code repository. more than 2k user are accessing. we want to identify and clear CAPTCHA of users on daily basis automatically for every 2hrs. How to achieve this

1 answer

1 vote
Charlie Misonne
Community Champion
November 21, 2023

Hi!

Why do you want to do this? The captcha is there for a reason.

If users often get a captcha when they login they are probaly using wrong credentials somewhere (in a script or some tool for example). How to identify the failed logins has been described on https://confluence.atlassian.com/bitbucketserverkb/how-to-configure-captcha-in-bitbucket-server-779171704.html

If you really need to do this every 2 hours you can loop over all your users and perform the http following http request. You need to do it for every user.

curl --user <user_name>:<password> -X DELETE http://baseurl:7990/rest/api/1.0/admin/users/captcha?name=<user_name>

There is also a SQL statement but it seems like you need to restart Bitbucket each time.

Both approaches have been described on https://confluence.atlassian.com/bitbucketserverkb/how-to-identify-and-reset-all-users-blocked-by-captcha-939513152.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events