Using the Salesforce Web Services API is it possible to check (or query) if a User is Locked Out (if they have attempted to log in unsuccessfully too many times and are therefore blocked from logging in)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although there is no specific field on the User object to indicate that they are locked out, you can query the
LoginHistoryobject.Then loop through the results, checking the value of the
Statusfield. If the user has been locked out, the most recent login attempts will have a value of “Password Lockout” in this field.Other possible values of this
Statusfield include: