This use case scenario provides the Identity REST API commands for searching for users. These commands apply to both user accounts and API service accounts.
Use this command to search for users by
username:
http --auth-type=veracode_hmac "https://api.veracode.com/api/authn/v2/users?user_name={username}"
You must specify the full username. The command does not support matching partial usernames.
Use this command to search for users by email
address:
http --auth-type=veracode_hmac "https://api.veracode.com/api/authn/v2/users?email_address={email address},{email address}"
Note: In each email address, you must specify the @ character using URL encoding or the command
fails. For example, user%40domain.com. To specify multiple addresses, separate
each address with a comma (,).