If you’re a user of the CIS API (“Person API”), you may now make use of the new filtering feature.
This feature allow you to ask the API for users with a particular attribute set (e.g. a specific group) instead of retrieving all users and doing the filtering on your own.
- You can find documentation here: https://github.com/mozilla-iam/cis/blob/master/docs/PersonAPI.md#what-routes-are-available-ie-what-queries-can-i-make
- The route is:
/v2/users/id/all/by_attribute_contains?staff_information.staff=True&active=Truewill return all active staff users.
Please note that using this API feature is highly recommended if you need to retrieve large lists of users, as we now have over 100k users.