function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Joel MnisiJoel Mnisi 

I need help with Login Geo

I'm trying to track the users geo location, the release notes (summer 15) does not provide sufficient information.
What are the steps or how do I configure Login Geo to obtain the users geo location and draw the map
Andy BoettcherAndy Boettcher
The released functionality behind Geolocation in Salesforce is for Accounts, not for users.  If you want to track and save a user's location, you'll need to use a 3rd party service client-side and save that info to a field on the User record.

Read up here:  https://developer.salesforce.com/forums/?id=906F0000000Ay8OIAS
Andy BoettcherAndy Boettcher
correction:  Not just for Accounts - for "Address" field types.
Joel MnisiJoel Mnisi
Okay thanks.
Is it possible to create a trigger that will auto login a user and auto logout a user at given time?
DavidSchachDavidSchach
@Andy, LoginGeo isn't part of the address geolocation service. It's a separate SObject that is related to a user's Login record to show the location of the IP address for that login.

@Joel, you will need to use a query tool (I use SOQL Explorer because I can visualize the object relationships) and decide which fields from LoginHistory, LoginGeo, AuthSession, and User you wish to get. Then construct your query and use the data as you like!