01-15-2021 03:19 AM - edited 07-09-2021 12:41 PM
This article aims to provide a solution for account lockouts preventing users from successfully logging in.
Please note: Switching authentication methods is not supported by Alteryx. That being said, customers in the past have managed to successfully switch from Built-in to SAML.
For Built-in Authentication, there is are two entries in the user documentation that states the lockout period and locked account status. When this happens there is a possibility of the account trying to access the gallery being locked. When in a unlocked state it is as following in MongoDB - user collection
"NumFailedLogins" : 0, "AccountLocked" : null,
Before lockout: "NumFailedLogins" : 0, "AccountLocked" : null, After Lockout: "NumFailedLogins" : 5, "AccountLocked" : true,If only the AccountLocked is set to false, the user will be able to log in but at the first wrong password the account will be locked again.
Before lockout: "NumFailedLogins" : 5, "AccountLocked" : null, OR false, After lockout: "NumFailedLogins" : 6, "AccountLocked" : true,
"NumFailedLogins" : 0, "AccountLocked" : null, OR "AccountLocked" : false,
Using ROBO3T as the management interface the entries can be edited or via mongo shell.
NOTE: Please backup the database before making changes in order to ensure a restore point is available. https://help.alteryx.com/current/server/mongodb-backups
Solution A
cd C:\Program Files\Alteryx\bin
mongo -u user -p PASTE_PASSWORD -host localhost:27018 AlteryxGallery
db.users.find({LastName:"Picard"}).pretty()
db.users.update({"LastName":"Dinu"}, {"$set": {"AccountLocked" : "false"}}); OR db.users.update({"LastName":"Dinu"}, {"$set": {"AccountLocked" : "null"}});
db.users.update({"LastName":"Dinu"}, {"$set": {"NumFailedLogins" : "0"}});