user Query
Look up a Pie user by email address. The required email argument
is the email to search for; the response is a UserInfo record if a
Pie user with that email exists, or null if no Pie user is found.
Looking up the caller's own email also returns null — the query
exists to find other users.
The primary use case is the "add person" flow that appears across Pie's UI in multiple surfaces (add to workspace, add to project, add to project task, add to personal task, add to account People page, add Recipe Admin, add Organization Admin). When an admin enters an email, the UI calls this query to determine whether the email already corresponds to a Pie user. Three outcomes drive the UI: an in-network match (the user is already in the caller's account), an out-of-network match (the user has a Pie account but is not in the caller's account, displayed in the UI with an "(external)" label), or no match (which triggers a new-user invitation flow where the admin then supplies a first and last name).
The lookup matches against the primary email column only —
secondary/preferred emails are not searched through this
endpoint. The match is case-insensitive.
The returned UserInfo does not include a field that explicitly distinguishes in-network from out-of-network. The client derives this state by cross-referencing the returned user id against the caller's known workspace/organization members.
No rate limiting is currently applied to this endpoint.
This query is distinct from userInfo(id: Int!), which looks up
the same UserInfo shape by user id rather than email.
Arguments
#
Response
#
Returns UserInfo .
