Skip to Content
Xeonr Developer Docs

Resolve Subjects

POST
/xeonr.auth.api.v1.SubjectsService/ResolveSubjects

Resolves up to 100 subject URNs — users, service accounts and OAuth clients — to a display label, an avatar where one exists, and whether the subject is disabled or deleted. Scoped to the caller's organisation, not to the calling application's enrolments. A URN that names nothing in the organisation comes back with kind SUBJECT_KIND_UNKNOWN rather than as an error.

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

Required scopes: auth:subjects:lookup

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

urns?array<>

Subject URNs to resolve: users, service accounts and OAuth clients, mixed freely. Duplicates are answered once.

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

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.SubjectsService/ResolveSubjects" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "subjects": [
    {
      "urn": "urn:xeonr:auth:uid:service_account:20",
      "kind": "SUBJECT_KIND_UNSPECIFIED",
      "label": "trail",
      "avatarUrl": "https://cdn.example.com/avatars/abc123",
      "disabled": true,
      "deleted": true,
      "automation": true,
      "displayName": "John Doe"
    }
  ]
}