
x6yof (x6yof) asked a question.
Hello,
So the question is pretty much in the title: is it possible to filter users by the fact that they have a secondary email set up or not? We have ~500 users and it would be impractical to check each one manually. Thank you in advance.

Hello,
The solution that you could try is using API calls and pagination by doing a query with the “limit=” parameter.
{{url}}/api/v1/users?limit=3
Then going to the Headers section under Postman and copying the link that is related to the next position of the cursor (link before ; rel="next"):
{{url}}/api/v1/users?after={{cursorposition}}&limit=3
You could then use a JSON parser to convert the data to .CSV
More details can be found in the following articles:
https://developer.okta.com/docs/api/getting_started/design_principles
https://developer.okta.com/code/rest/
https://developer.okta.com/reference/postman_collections/
Best regards,
Cosmin