Legacy Dev Forum Posts

 View Only

Sign Up

Geolocation - ClientID and UserID

  • 1.  Geolocation - ClientID and UserID

    Posted 06-05-2025 18:10

    anon96077842 | 2016-06-27 10:24:57 UTC | #1

    Trying to get a users geo location, but i cant seem to figure out wher to locate the "clientID" & "userID" can be found/grabbed.

    My tests return an empty string { }

    https://developer.mypurecloud.com/api/rest/v2/geolocation/index.html

    GET /api/v2/users/{userId}/geolocations/{clientId}

    Any having same problem or a where i can find the information? Many thanks in advance. James


    tim.smith | 2016-06-27 20:06:58 UTC | #2

    {userId} is the GUID ID of the user you want to get information for. Get this from a user resource such as GET /api/v2/users/me or GET /api/v2/users.

    {clientId} is the GUID ID of the client that provided the location.

    Currently, there is no way to get a listing of clients that are providing geolocations or what the user's current client is. However, you can get a user's geolocation by adding ?expand=geolocation to a user resource. Examples:

    To get your geolocation: GET /api/v2/users/me?expand=geolocation

    To get a user's geolocation: GET /api/v2/users/{userId}?expand=geolocation


    anon96077842 | 2016-06-28 08:24:58 UTC | #3

    Thanks! tested and it works.


    system | 2017-08-28 19:25:02 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 99