Geolocation - ClientID and UserID

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

1 Like

{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

1 Like

Thanks! tested and it works.