Filtering Users with the Identity API
This use case scenario provides the Identity REST API commands for filtering users. These commands apply to both user accounts and API service accounts.
Use this command to filter users by role:
http --auth-type=veracode_hmac GET "https://api.veracode.com/api/authn/v2/users/search?role_id={role_guid}"
Use this command to filter users by user type:
http --auth-type=veracode_hmac GET "https://api.veracode.com/api/authn/v2/users/search?user_type={user_type}"
Use this command to filter users by login status:
http --auth-type=veracode_hmac GET "https://api.veracode.com/api/authn/v2/users/search?login_status={login_status}"
Use this command to filter users by SAML status:
http --auth-type=veracode_hmac GET "https://api.veracode.com/api/authn/v2/users/search?saml_user=true"
Use this command to filter users by team:
http --auth-type=veracode_hmac GET "https://api.veracode.com/api/authn/v2/users/search?team_id={team_guid}"