Link to home
Start Free TrialLog in
Avatar of Mahesh babu
Mahesh babu

asked on

Display information to fleet members depending on their location

We being into logistics are working on an idea where the location of our fleet will let them know the information depending on their location (region).

All the fleet members are on o365 .  Since the usage location is not mapped from AD to O365, and from O365 to SPO, we are stuck.

Our development team has developed a code that can fetch the user profile of a user in SPO to get its location and shows the intended information related to that particular location

I found this: https://github.com/SharePoint/PnP/blob/master/Samples/UserProfile.BatchUpdate.API/CreateImportJob.ps1

But again we want to explore different option as above one requires more codes to deliver the changes in location and it is adding the value so development team will have to work on developing a new code for updating the file.

So, what are the ways to know /fetch the user location

Any help will be appreciated.
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

Why don't you dump the domain controller they are connecting to into a file and then use that for a general idea of where they are?
Avatar of Mahesh babu
Mahesh babu

ASKER

@alex Thank you for the response.

We want to know the city/region/country of the user.

however the DC in our env. covers either single or multiple cities/regions (site) in a country


Is there any other approach apart from this? :(
OK what about sites and services, could you use that and pull the IP address to get the site that the user is in?
To give you a glimpse,

To give you an example...if a fleet member logs in from Mumbai logs into the company portal, he should see the future orders, policies, updates etc... related to Mumbai by default

What are the ways to fetch the location of the employee?
Have you noticed website always ask if its ok to share your location. The precise location of the user is not always available for wen browser security also vpn traffic gives false location
There is no way to determine a user's Geo.

There are just to many VPN + other NAT'ted systems in use today.

This is why Google allows you to set your location.

If Google can't figure out how to determine a Geo correctly, then best to copy what Google does.

Have user set their Geo or better their language (you might have an English speaking expat in Thailand) to provide language specific content.
@Mahesh babu


The best way to this would be by IP subnet or IP Address Scope.


As was mentioned by @Alex above, you can do this by utilizing sites and services in AD.

This will give you a good walk though on how to accomplish this :

https://blogs.technet.microsoft.com/canitpro/2015/03/03/step-by-step-setting-up-active-directory-sites-subnets-site-links/
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial