Search qualification parameter used to find users within the system.
-
q=enabled = "true"
Returns all enabled users in the system.
-
q=enabled = "true" AND spaceAdmin = "true"
Returns all enabled users that are also space admins
-
q=enabled = "true" AND spaceAdmin = "true" AND (username =* "joh" OR email =* "joh" OR displayName =* "joh")
Returns all enabled users that are also space admins who have a username, email, or displayName that start with “joh”
-
BETWEEN
left side is between two values - first value is inclusive, second value is exclusive
-
IN
left side is equal to one of provided items
-
=
equal
-
=*
starts with
-
>
greater than
-
>=
greater than or equal
-
<
less than
-
<=
less than or equal
-
AND
Returns boolean true if and only if both expressions are true
-
OR
Returns boolean true if at least one expression is true
-
createdAt (The ISO 8601 time that when the user was created)
Example:
q=createdAt BETWEEN ("2018-04-16T18:42:56.000Z","2019-04-16T18:42:56.000Z")
-
displayName (Display Name of the user)
Example:
-
email (Email Address of the user)
Example:
-
updatedAt (The ISO 8601 time that when the user was last updated)
Example:
q=updatedAt >= "2018-04-16T18:42:56.000Z"
-
username (Username of the user)
Example:
q=username IN ("john.doe","mary.manager")
-
enabled (If the user is enabled (true or false))
Example:
-
spaceAdmin (If the user is a Space Admin (true or false))
Example:
-
attributes[Attribute Name] (Attribute Value of a user)
Example:
-
profileAttributes[Attribute Name] (Profile Attribute Value of a user)
Example:
q=profileAttributes[Phone Number]="888-446-9292"
Properties can be combined to create subexpressions within a query qualification, however some limits are enforced to ensure a stable and performant system.
-
The enabled and spaceAdmin properties can only be combined with other subexpressions using the AND operator.
Examples of valid queries using the spaceAdmin and enabled properties
q=enabled="true" AND spaceAdmin = "false" AND ...
Examples of invalid queries using the spaceAdmin and enabled properties
q=enabled="true" OR spaceAdmin = "false" OR ...
-
Only one attributes[] or profileAttributes[] property can be used within a search qualification
Examples of valid queries using Attributes and Profile Attributes
Examples of invalid queries using Attributes and Profile Attributes
-
q=displayName="John" AND attributes[FOO] = "Bar" AND attribute[BAZ] = "Bang"
-
q=displayName="John" AND profileAttributes[FOO] = "Bar" AND profileAttributes[BAZ] = "Bang"
-
q=displayName="John" AND attributes[FOO] = "Bar" AND profileAttributes[BAZ] = "Bang"
-
When combining the createdAt, displayName, email, updatedAt or username properties with the OR operator, the subexpressions must be surrounded with parentheses (). If the subexpressions can not be completed efficiently, an error message will be returned that includes information on how to structure a more efficient query.
Examples of valid queries using the =* (starts with), <, <=, >, >=, and BETWEEN operators
Examples of invalid queries using the =* (starts with), <, <=, >, >=, and BETWEEN operators
q=profileAttributes[Manager]="mary.manager" AND username =* "John" OR email =*john
The system will paginate search results based on the limit parameter. If there are more results than the limit parameter (or more than 1000 results if the limit parameter is not provided), a nextPageToken will be included in the response. The nextPageToken value can be passed as the pageToken parameter in subsequent queries to obtain the next page of results.
DEPRECATION NOTICE: Pagination functionality was introduced in version 2.4. In order to provide backwards compatibility with previous versions, if you provide the limit parameter, results will be paginated. If you don’t provide the limit parameter, the full result will be returned. The ability to return the full result set will be deprecated in a later version in favor of a paginated set of results.
Example Response with a next page token
{
"users": [{...}, {...}],
"nextPageToken": "YWJib3R0LmRldmFuQHRoaWVsLm9yZw.4wg2me95blthjyzdvkfs56oc3"
}