Skip to Content
Xeonr Developer Docs

List Email Ownership Changes

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

Ordered feed of changes to which account holds which verified email address in the caller's organisation: an address verified, removed, moved to another account, or its holder disabled, re-enabled or deleted. Each entry carries the address and its CURRENT holder (empty when nobody active holds it), resolved as ResolveUsersByEmail resolves it. Poll with the previous next_cursor; a change appears a few seconds after it commits.

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

cursor?string

Exclusive cursor: the next_cursor of the previous response. Empty starts at the oldest change auth still holds. Opaque; pass back exactly what auth returned.

Lengthlength <= 64
limit?integer

Most changes to return, 1 to 500. Zero means 100.

Formatint32
Range0 <= value <= 500
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.UsersService/ListEmailOwnershipChanges" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "changes": [
    {
      "email": "[email protected]",
      "userId": "urn:xeonr:auth:uid:user:123",
      "username": "luke",
      "changedAt": "2023-01-15T01:30:15.01Z",
      "displayName": "Luke Smith",
      "avatarUrl": "https://cdn.example.com/avatars/abc123",
      "automation": true
    }
  ],
  "nextCursor": "string",
  "hasMore": true
}