> ## 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.

# Recompute one SaaS identity's issues

> Judge one identity against the application's published access policy now, from what Primo holds of it, and answer the issues it holds afterwards. The application's other issues are left as they are. `getSaasIssues` reads what the last recompute stored without judging anything again; `previewSaasIssues` judges a policy draft without storing anything.

What Primo holds is what the application's hourly sync or `syncSaasIdentity` last read, so a change made in the application since is not judged until one of them reads it. An application neither APPROVED nor BLOCKED holds no issue, so the answer is then empty. Answers 404 for an identity archived or unknown on this application.

Key: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /saas/{saasId}/identities/{identityId}/issues/recompute
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:
  /saas/{saasId}/identities/{identityId}/issues/recompute:
    post:
      tags:
        - Saas
      summary: Recompute one SaaS identity's issues
      description: >-
        Judge one identity against the application's published access policy
        now, from what Primo holds of it, and answer the issues it holds
        afterwards. The application's other issues are left as they are.
        `getSaasIssues` reads what the last recompute stored without judging
        anything again; `previewSaasIssues` judges a policy draft without
        storing anything.


        What Primo holds is what the application's hourly sync or
        `syncSaasIdentity` last read, so a change made in the application since
        is not judged until one of them reads it. An application neither
        APPROVED nor BLOCKED holds no issue, so the answer is then empty.
        Answers 404 for an identity archived or unknown on this application.
      operationId: recomputeSaasIdentityIssues
      parameters:
        - name: saasId
          required: true
          in: path
          schema:
            type: string
        - name: identityId
          required: true
          in: path
          schema:
            type: string
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecomputeSaasIdentityIssues_Output'
components:
  schemas:
    RecomputeSaasIdentityIssues_Output:
      type: object
      properties:
        data:
          type: array
          description: >-
            The issues the identity holds once recomputed, empty when the access
            policy finds nothing left.
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
                enum:
                  - NEED_ACCESS
                  - SHOULD_NOT_HAVE_ACCESS
                  - SHOULD_BE_MEMBER_OF_GROUP
                  - SHOULD_NOT_BE_MEMBER_OF_GROUP
                  - SHOULD_HAVE_ROLE
                  - SHOULD_NOT_HAVE_ROLE
                  - SHOULD_HAVE_LICENSE
                  - SHOULD_NOT_HAVE_LICENSE
                  - SHOULD_BE_IN_ORGANIZATION_UNIT
                  - ORPHANED_IDENTITY
              employeeId:
                description: Primo employee involved in the issue, when applicable.
                anyOf:
                  - type: string
                  - type: 'null'
              identityId:
                description: Identity involved in the issue, when applicable.
                anyOf:
                  - type: string
                  - type: 'null'
              groupId:
                description: Group involved in the issue, when applicable.
                anyOf:
                  - type: string
                  - type: 'null'
              roleId:
                description: Role involved in the issue, when applicable.
                anyOf:
                  - type: string
                  - type: 'null'
              licenseId:
                description: License involved in the issue, when applicable.
                anyOf:
                  - type: string
                  - type: 'null'
              organizationUnitId:
                description: Organization unit involved in the issue, when applicable.
                anyOf:
                  - type: string
                  - type: 'null'
              reason:
                description: >-
                  Plain-language reason for this issue, displayed to the end
                  user.
                anyOf:
                  - type: string
                  - type: 'null'
              createdAt:
                description: ISO 8601 date-time when the issue was created.
                type: string
                format: date-time
                pattern: >-
                  ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
            required:
              - id
              - type
              - employeeId
              - identityId
              - groupId
              - roleId
              - licenseId
              - organizationUnitId
              - reason
              - createdAt
            additionalProperties: false
      required:
        - data
      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.