API SpecificationPRIVATExeonr.auth.private.v1.OrganisationService
List User Emails
Returns one user's email set: each address with its sources (primary, linked provider, added by hand) and verified state, and the addresses a linked provider of theirs vouches for that another account already holds verified, with that account. 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
userId?string
The user, as a subject URN (urn:xeonr:auth:uid:user:) or bare id, in the caller's organisation.
Length
1 <= length <= 128[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.OrganisationService/ListUserEmails" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"emails": [
{
"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"
}
],
"heldElsewhere": [
{
"email": "[email protected]",
"connectionIdpSlugs": [
"string"
],
"holderUserId": "urn:xeonr:auth:uid:user:456",
"holderUsername": "string"
}
]
}