You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
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