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
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
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.