Skip to main content
3 votes

Login History Subdivision and City

I don't believe that using the admin feature to log in as another user writes to the login history because otherwise it would cause the "Last Login Date" to be inaccurate but I could be ...
nbrown's user avatar
  • 4,043
2 votes
Accepted

Can't include related User and Network fields in a LoginHistory query?

Like English language, there are more exceptions than rules in Salesforce :) Not being able to do parent reference query on Parent fields sometimes is one of them. Salesforce typically populates "...
metasync's user avatar
  • 1,772
2 votes

I want to get number of user logged in to salesforce with specific profile

In these situations, it helps to know which fields you do have access to. The SOAP API documentation is where I tend to turn to. In the SOAP API docs for LoginHistory, we see that there is a UserId ...
Derek F's user avatar
  • 62.8k
1 vote
Accepted

Track Login and Logout Time of Every User In Salesforce and Community Users

Is "/event/LogoutEventStream" event is free for all? It is free for Enterprise, Unlimited, and Performance Edition orgs. These orgs get the API Total Usage, CORS Violation Record, Hostname ...
sfdcfox's user avatar
  • 497k
1 vote

How can I calculate daily active users for salesforce logins?

The object you probably want is LoginHistory. This gives you every login attempt by every user in your org. Note, it includes attempts, so you would need to filter by successful logins.
Daniel Hoechst's user avatar
1 vote

Unable to see last login or the login history for some users

Welcome to Salesforce Stack Exchange (SFSE)! That usually means that the user has never logged in.
Moonpie's user avatar
  • 2,714
1 vote

How to create a batch to count the worked days of the users based on LoginTime

Depending on the number of results, you can just write your query like this: SELECT DAY_ONLY(LoginTime), UserId FROM LoginHistory WHERE DAY_IN_WEEK(LoginTime) NOT IN (1, 7) GROUP BY UserId, ...
sfdcfox's user avatar
  • 497k
1 vote
Accepted

Why there are question marks in "User" column in Setup Audit Trail CSV file?

I had the same problem. The solution that worked for me was to change my user's language to the one I'm seeing question marks for (in my case, Hebrew). After that I downloaded the file, opened it in ...
Lior Lavi's user avatar
  • 374
1 vote
Accepted

SOQL aggregate maxing out SOQL limits

The rows from your Left Inner Join do not count against your governors. If you're running into row limits, it is strictly because you have too many UserLogin records. If you want to know the number ...
Adrian Larson's user avatar
  • 151k
1 vote

How to set application in Salesforce LoginHistory?

At this time, it does not appear to be possible to set the application using simple-salesforce. I've tried setting a number of things in client code, and found none that will cause the application to ...
davejagoda's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible