Skip to main content

Examples

  • Find all proxy users associated with a specific department
  • Find proxy users with a employee_id within a certain range

Key Concepts

  1. Exact Metadata Matching: Use proxy_user_metadata.field_name to search for proxy users with a specific value in their metadata.
  2. Range Filtering: Use proxy_user_metadata.min_field_name and proxy_user_metadata.max_field_name to search for proxy users with metadata values within a specific range.

Advanced Metadata Search Operators

In addition to exact matching and range filtering, the Byteful API supports several advanced operators that provide more flexibility when searching proxy users by their metadata.

Pattern Matching with like_

The like_ operator allows you to search for proxy users with metadata fields that match a specific pattern. This is particularly useful for partial text matches. Example: Find proxy users with email addresses from a specific domain This will match any proxy user with an email field in their metadata that contains “@example.com”. Example: Find proxy users with names starting with a specific prefix
The % character acts as a wildcard. This query would match names like “John”, “Johnny”, “Johnson”, etc.

Existence Checking with exists_

The exists_ operator allows you to find proxy users that have a particular metadata field defined, regardless of its value. Example: Find proxy users that have a department field
This will return all proxy users that have the “department” field in their metadata, regardless of what department it is. Example: Find proxy users without a specific field
This will return all proxy users that do not have an “end_date” field in their metadata.

Negation with not_

The not_ operator allows you to find proxy users where a metadata field does not match a specific value. Example: Find proxy users not in the Marketing department
This will return all proxy users whose department field is not set to “Marketing”. Example: Find proxy users with employee_id outside a specific range
This will return proxy users whose employee_id is less than 1000 or greater than 5000.

Combining Search Operators

You can combine multiple search operators to create complex queries. Example: Find active proxy users in the Sales department with an email from example.com
Example: Find proxy users with a project field but without an end_date