Skip to Content
Xeonr Developer Docs

Resolve Users By Email

POST
/xeonr.auth.api.v1.UsersService/ResolveUsersByEmail

Resolves up to 100 email addresses to the accounts holding them as verified addresses — primary, a linked provider's, or one added and verified by the person — within the caller's organisation. Addresses that resolve to no active account are absent from the response.

Service accounts only: a user's token is refused even if it carries the scope. Audit-logged.

Required scopes: auth:users:lookup-email

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

emails?array<>

The addresses to resolve, as the caller has them (a git commit's author email, say). Matched trimmed and case-insensitively. Not validated as addresses: one that is not an address simply resolves to nothing, so a batch of real-world author emails is never refused for one odd entry.

Items1 <= items <= 100
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.UsersService/ResolveUsersByEmail" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "users": [
    {
      "email": "[email protected]",
      "userId": "urn:xeonr:auth:uid:user:123",
      "username": "luke",
      "displayName": "Luke Smith",
      "avatarUrl": "https://cdn.example.com/avatars/abc123",
      "automation": true
    }
  ]
}