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

# Get the compliance settings and whether auto-remediation is on

> Return the settings of the cockpit's "Issue Triggers" page: `autoRemediation` (ENABLED when the remediation policy is published — Primo AI then works the compliance tickets on its own; DISABLED otherwise), `ticket` (`autoCreateTickets`, whether every compliance issue opens a ticket on its own, and the default assignee, priority and subscribers of those tickets) and `exceptions` (whether unassigned or in-stock devices are left out, and the grace period before a pending status raises an issue). Which statuses raise an issue is per rule, in `getComplianceAlertRules`. The policy text itself is in `getComplianceRemediationPolicy`.

Key: ReadScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json get /compliance/settings
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /compliance/settings:
    get:
      tags:
        - Compliance
      summary: Get the compliance settings and whether auto-remediation is on
      description: >-
        Return the settings of the cockpit's "Issue Triggers" page:
        `autoRemediation` (ENABLED when the remediation policy is published —
        Primo AI then works the compliance tickets on its own; DISABLED
        otherwise), `ticket` (`autoCreateTickets`, whether every compliance
        issue opens a ticket on its own, and the default assignee, priority and
        subscribers of those tickets) and `exceptions` (whether unassigned or
        in-stock devices are left out, and the grace period before a pending
        status raises an issue). Which statuses raise an issue is per rule, in
        `getComplianceAlertRules`. The policy text itself is in
        `getComplianceRemediationPolicy`.
      operationId: getComplianceSettings
      parameters: []
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceSettingsResponse_Output'
components:
  schemas:
    ComplianceSettingsResponse_Output:
      type: object
      properties:
        ticket:
          type: object
          properties:
            autoCreateTickets:
              description: >-
                True: every compliance issue opens a ticket on its own ("Create
                tickets automatically" is on). Ignored while Primo AI works the
                issues itself (auto-remediation ENABLED), which opens one ticket
                per issue.
              type: boolean
            assignee:
              description: >-
                Default assignee of every ticket Primo opens from a compliance
                issue. Null means unassigned.
              anyOf:
                - anyOf:
                    - type: object
                      properties:
                        type:
                          type: string
                          const: EMPLOYEE
                        employeeId:
                          description: >-
                            Primo employee id — look the person up with
                            `getEmployees`.
                          type: string
                          minLength: 1
                      required:
                        - type
                        - employeeId
                      additionalProperties: false
                    - type: object
                      properties:
                        type:
                          type: string
                          const: EXTERNAL_ADMIN
                        userId:
                          description: >-
                            Clerk user id of an admin with no employee record —
                            the `userId` of an `external` entry of `getAdmins`.
                          type: string
                          minLength: 1
                      required:
                        - type
                        - userId
                      additionalProperties: false
                - type: 'null'
            priority:
              description: >-
                Priority set on each new compliance ticket. Null means no
                priority.
              anyOf:
                - type: string
                  enum:
                    - LOW
                    - MEDIUM
                    - HIGH
                - type: 'null'
            subscribers:
              description: >-
                People notified when a compliance ticket is created and when it
                changes.
              type: array
              items:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        const: EMPLOYEE
                      employeeId:
                        description: >-
                          Primo employee id — look the person up with
                          `getEmployees`.
                        type: string
                        minLength: 1
                    required:
                      - type
                      - employeeId
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        const: EXTERNAL_ADMIN
                      userId:
                        description: >-
                          Clerk user id of an admin with no employee record —
                          the `userId` of an `external` entry of `getAdmins`.
                        type: string
                        minLength: 1
                    required:
                      - type
                      - userId
                    additionalProperties: false
          required:
            - autoCreateTickets
            - assignee
            - priority
            - subscribers
          additionalProperties: false
        exceptions:
          type: object
          properties:
            excludeUnassignedDevices:
              description: >-
                True: a device with no owner raises no compliance issue, no
                ticket and no remediation (the "Unassigned devices" exception is
                on).
              type: boolean
            excludeDevicesInStock:
              description: >-
                True: a device held in stock raises no compliance issue, no
                ticket and no remediation (the "In stock devices" exception is
                on).
              type: boolean
            gracePeriodDays:
              description: >-
                Days a device must stay in a pending status before the issue is
                raised, 0 to 30; a failing status raises its issue at once. 0
                raises every issue on the first check.
              type: integer
              minimum: 0
              maximum: 30
          required:
            - excludeUnassignedDevices
            - excludeDevicesInStock
            - gracePeriodDays
          additionalProperties: false
        autoRemediation:
          type: string
          description: >-
            ENABLED when the compliance remediation policy is published: Primo
            AI is then assigned to the compliance tickets it opens and follows
            that policy. DISABLED when it was never published or was
            unpublished.
          enum:
            - ENABLED
            - DISABLED
      required:
        - ticket
        - exceptions
        - autoRemediation
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.