cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
485
Views
1
Helpful
3
Replies

Why location are getting listed in Groups API?

I have created a groups ans location on Webex control hub. When I use https://developer.webex.com/docs/api/v1/scim2-group/search-groups API then all groups and location are getting fetched in response.
My understanding is, https://developer.webex.com/docs/api/v1/scim2-group/search-groups API should only fetch groups not location in response.
Please correct if something is wrong here.

Thanks,
Prashant 

3 Replies 3

Raffaele Lagana
Cisco Employee
Cisco Employee

Yes, this API returns both locations and groups (known as "policy" within this API). There is a usage field that tells whether it's a location or a group/policy. It also returns the synchronized groups, also returned with "usage=policy".

@Raffaele Lagana Can you please brief why this is like this? We already have https://developer.webex.com/docs/api/v1/locations which is dealing with location. 
API  https://developer.webex.com/docs/api/v1/scim2-group/search-groups should return only groups not location.

Thanks,
Prashant

Location is represented as a type of group in Common Identity (backend identity management service), whose usage is "location". This is how it's designed and it follows the SCIM Specification. Basically locations are considered to be a type of user group, in that a location usually includes a group of users, so it is returned by this API. Note that our SCIM 2.0 APIs are different to most of our other APIs in that they are specifically built to conform to the SCIM Specification standard (which is external to Cisco) and therefore it's not necessarily going to be tied to functionalities that our other APIs provide.