I’ve recently been doing some work with AirWatch’s REST API.
One call required me to pass the LocationGroupId for an Organization Group, this is not readily available & the below are some methods that can be used to get the LocationGroupId for an Organization Group.
LocationGroupId for an Organization Group?
If you’ve been administering AirWatch for some time, you’ll possibly remember that Organization Group’s were once called Location Group’s.
It seems like the API has kept this old name for backwards compatibility for people running API calls pre & post the change.
Within the AirWatch REST API documentation you’ll find various mentions of the LocationGroupId, which look like the below:
Via the Console
My first guess was to look within the console for this as Organization Group details can be found under “Groups & Settings” > “Groups” > “Organization Groups” > “Organization Group Details”, as shown below.
Sadly the “Group ID” shown above is not the needed LocationGroupId.
After logging a ticket with AirWatch support they advised that there are 2 places within that page where you can get the LocationGroupId.
- Right click the “Organization Group Details” tab & copy the link. Paste that into something & you’ll find the LocationGroupId at the end of the URL.
- Via the CSS. (!!), this is shown below with the Orange rectangle being where the LocationGroupId is shown.
Via the API
So the above is what I was advised by AirWatch support as the location to find the LocationGroupId.
However, in scouring the REST API documentation, it does appear that there is an API call that will get the LocationGroupId:
Where groupID is the “Group ID” that is shown within the console.