I’m trying to understand the behavior of the following endpoint -
The documentation describes the query param as following -
A query string that is matched against user attributes (
emailAddress) to find relevant users. The string can match the prefix of the attribute’s value. For example, query=john matches a user with a
displayNameof John Smith and a user with an
emailAddressof email@example.com . Required, unless
Can this endpoint be used to reliably find a user by email even though the email address may or may not be included in the response?
I was worried we may have an issue if a user with the displayName ‘firstname.lastname@example.org’ exists.
I tested this scenario by posting a user with this displayName and the user was not included when I queried using
Is the behavior of the query to only search by email if string is in an email format.
GET /rest/api/3/user/search?query=domain.com would include the user.
Let me know any further clarification is needed.