Skip to Content
Xeonr Developer Docs

Lookup User By Email

POST
/xeonr.auth.private.v1.OrganisationService/LookupUserByEmail

Returns the account in the organisation holding an email address verified, and any other account with it pending or vouched for by a linked provider. Audit-logged.

Required scopes: auth:users:read

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

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

email?string

The address to look up, matched trimmed and case-insensitively.

Length3 <= length <= 320
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.OrganisationService/LookupUserByEmail" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "user": {
    "account": {
      "userId": "usr_a1b2c3d4e5f6",
      "username": "johndoe",
      "email": "[email protected]",
      "avatarUrl": "https://cdn.example.com/avatars/abc123",
      "displayName": "John Doe"
    },
    "disabled": true,
    "isAdmin": true,
    "pending": true,
    "automation": true
  },
  "email": {
    "id": "6f1c2a9e-3b7d-4c55-9a43-2f0e8d1b7c61",
    "email": "[email protected]",
    "verified": true,
    "primary": true,
    "sources": [
      "EMAIL_SOURCE_UNSPECIFIED"
    ],
    "connectionIdpSlugs": [
      "github"
    ],
    "verifiedAt": "2023-01-15T01:30:15.01Z",
    "verificationExpiresAt": "2023-01-15T01:30:15.01Z",
    "createdAt": "2023-01-15T01:30:15.01Z"
  },
  "otherUserIds": [
    "string"
  ]
}