> ## Documentation Index
> Fetch the complete documentation index at: https://docs.niadra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SSO test result

> The e-mail, groups and roles the provider sent in the test.



## OpenAPI

````yaml openapi/en/control.json GET /v1/sso/tests/{test_id}
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/sso/tests/{test_id}:
    get:
      summary: SSO test result
      description: >-
        The outcome of a test sign-in; `pending` until the provider answers (ten
        minutes at most).


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: test_result_v1_sso_tests__test_id__get
      parameters:
        - in: path
          name: test_id
          required: true
          schema:
            format: uuid
            title: Test Id
            type: string
          example: 0192f8e5-93a4-75b6-8fc7-3c4d5e6f7a90
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SsoTestResultOut'
              example:
                test_id: 0192f8e5-93a4-75b6-8fc7-3c4d5e6f7a90
                status: completed
                created_at: '2026-09-24T12:00:00Z'
                completed_at: '2026-09-24T12:01:10Z'
                ok: true
                failure: null
                detail: null
                email: nina@acme.example
                groups:
                  - cx-quality
                  - all-staff
                roles:
                  - review
                person_exists: false
          description: The outcome of the test, or pending.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - personToken: []
components:
  schemas:
    SsoTestResultOut:
      additionalProperties: false
      properties:
        completed_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Completed At
        created_at:
          format: date-time
          title: Created At
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        email:
          anyOf:
            - type: string
            - type: 'null'
          description: The e-mail the provider sent for the account used in the test.
          title: Email
        failure:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Why a real sign-in would be refused: denied, expired, invalid,
            domain, no_role, other_tenant, deactivated, unavailable or disabled.
          title: Failure
        groups:
          items:
            type: string
          title: Groups
          type: array
        ok:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Null while the test waits for the provider.
          title: Ok
        person_exists:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Person Exists
        roles:
          description: The roles that account would get.
          items:
            $ref: '#/components/schemas/Role'
          title: Roles
          type: array
        status:
          enum:
            - pending
            - completed
            - failed
          title: Status
          type: string
        test_id:
          format: uuid
          title: Test Id
          type: string
      required:
        - test_id
        - status
        - created_at
        - completed_at
        - ok
        - failure
        - detail
        - email
        - groups
        - roles
        - person_exists
      title: SsoTestResultOut
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    Role:
      description: Console roles, combinable.
      enum:
        - admin
        - security
        - integration
        - review
        - analysis
        - vendor
      title: Role
      type: string
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````