Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8284067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:57:46+00:00 2026-06-08T10:57:46+00:00

Using the Salesforce Web Services API is it possible to check (or query) if

  • 0

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)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:57:48+00:00Added an answer on June 8, 2026 at 10:57 am

    Although there is no specific field on the User object to indicate that they are locked out, you can query the LoginHistory object.

    select Id, UserId, LoginTime, Status from LoginHistory where
        UserId = 'xxxxxxxxx' order by LoginTime desc limit 20
    

    Then loop through the results, checking the value of the Status field. 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 Status field include:

    • Success
    • User is Inactive
    • Invalid Password
    • Failed: API security token required
    • Failed: Computer activation pending
    • Failed: Computer activation required
    • Failed: Invalid Timestamp
    • Failed: Mobile License Required
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Salesforce api and i want to login automatically(hard code user name
When using the Salesforce SOAP API via PHP, if I have an object which
I am using Flex-Force API to connect to Salesforce. I have hard coded my
I'm trying to execute a SOQL query using salesforce REST API which will return
I have been using SOAP to deal with Salesforce.com and have been using the
using the salesforce Email Services can we do means prevent duplicate cases and How
I am successfully creating a Task using the SalesForce API SOAP API through Java.
When using the SOAP API to work with salesforce.com (SFDC) it seems that the
I am using salesforce rest api to access the salesforce account from my rails
I am developing a salesforce app and using OAuth 2.0 to login. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.