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

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# «Wer darf was?»: das Rechte-Panel einer App, eines Systems, einer Gruppe oder einer Person

> «Wer darf was?»: das Rechte-Panel einer App, eines Systems, einer Gruppe oder einer Person.

Im Chat mit «Mono Admin»: `access_explain`, `connectors_list`.



## OpenAPI

````yaml /api-reference/openapi.json get /mandanten/{id}/access/rights
openapi: 3.1.0
info:
  title: Console-API des Node
  version: v1
  summary: Die API, mit der die Mono Console einen Node liest und ändert.
  description: >-
    Jeder Node hat diese API unter `/api/v1`. Die Mono Console, die Desktop-App
    und «Mono Admin» im Chat nutzen dieselben Regeln und dasselbe Audit.


    **Anmeldung:** Jede Anfrage trägt einen Bearer-Token, den der Node selbst
    ausstellt (OpenID Connect mit PKCE, Client `mono-console`). Ein Token gilt
    für die Person: Sie sehen und ändern nur, was diese Person darf.


    **Antworten:** JSON. Eine Ablehnung ist `{ error, message }` mit einem Satz
    auf Deutsch. Jede Änderung steht im Audit, nie ein Inhalt.


    Diese Referenz ist aus dem Code erzeugt (`pnpm docs:gen`). Eine Antwort oder
    ein Körper ohne Schema heisst: Der Code beweist die Form nicht an einer
    Stelle, die der Generator lesen kann.
servers:
  - url: https://ki.muster.example/api/v1
    description: 'Ein Node (Beispiel: Muster AG)'
  - url: http://127.0.0.1:8787/api/v1
    description: Ein Node auf diesem Gerät (`pnpm dev:gateway`)
security:
  - bearer: []
tags:
  - name: Übersicht
    x-displayName: Übersicht
    description: >-
      Wer angemeldet ist, die MCP-Server, die Einrichtung und die gemessenen
      Kennzahlen.
  - name: Inbox
    x-displayName: Inbox
    description: >-
      Freigaben, «Immer erlauben» und die Aufgaben auf den Geräten des
      Mandanten.
  - name: Studio
    x-displayName: Studio
    description: Standard-Apps, eigene Apps, Skill-Packs und die CI.
  - name: Konnektoren
    x-displayName: Konnektoren
    description: >-
      Microsoft 365 und Google Workspace, Systeme über ihre Adresse und die Mono
      Connectors.
  - name: Zugriff
    x-displayName: Zugriff
    description: >-
      Anmeldung, Gruppen und Rollen, Einladungen und die Kunden eines
      IT-Partners.
  - name: Gateway
    x-displayName: Gateway
    description: KI-Clients, Tools, Modelle, Datenwege, Kosten, Kanäle und das Audit.
  - name: Betrieb
    x-displayName: Betrieb
    description: Updates, die eigene Adresse, das Netzwerk und die Mandantennotizen.
  - name: Profil
    x-displayName: Profil
    description: 'Das eigene Konto der Person: Zustimmungen, Sprache, Foto und Passkeys.'
paths:
  /mandanten/{id}/access/rights:
    get:
      tags:
        - Zugriff
      summary: >-
        «Wer darf was?»: das Rechte-Panel einer App, eines Systems, einer Gruppe
        oder einer Person
      description: >-
        «Wer darf was?»: das Rechte-Panel einer App, eines Systems, einer Gruppe
        oder einer Person.


        Im Chat mit «Mono Admin»: `access_explain`, `connectors_list`.
      operationId: getMandantenByIdAccessRights
      parameters:
        - name: id
          in: path
          required: true
          description: Der Mandant (seine ID auf diesem Node).
          schema:
            type: string
          example: muster-ag
        - name: subject
          in: query
          required: false
          description: >-
            Wessen Rechte gezeigt werden: «<Art>:<Kennung>» – app, system,
            resource, suite, group oder person (eine Standard-App als
            «app:<Server>:<App>»).
          schema:
            type: string
          example: group:MA-Finanzen
      responses:
        '200':
          description: Erfolgreich.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RightsPanelResponse'
        '401':
          $ref: '#/components/responses/Fehler401'
        '403':
          $ref: '#/components/responses/Fehler403'
        '404':
          $ref: '#/components/responses/Fehler404'
components:
  schemas:
    RightsPanelResponse:
      type: object
      properties:
        rights:
          type: object
          properties:
            subject:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - app
                    - system
                    - resource
                    - suite
                    - group
                    - person
                id:
                  type: string
                  minLength: 1
                  maxLength: 300
                name:
                  type: string
                  maxLength: 200
              required:
                - kind
                - id
                - name
              additionalProperties: false
            direction:
              type: string
              enum:
                - fuer-wen
                - was
            forWhom:
              anyOf:
                - type: object
                  properties:
                    audience:
                      oneOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: all
                          required:
                            - kind
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: groups
                            groups:
                              minItems: 1
                              type: array
                              items:
                                type: string
                          required:
                            - kind
                            - groups
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: me
                          required:
                            - kind
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              const: none
                          required:
                            - kind
                          additionalProperties: false
                    write:
                      anyOf:
                        - oneOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: all
                              required:
                                - kind
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: groups
                                groups:
                                  minItems: 1
                                  type: array
                                  items:
                                    type: string
                              required:
                                - kind
                                - groups
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: me
                              required:
                                - kind
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: none
                              required:
                                - kind
                              additionalProperties: false
                        - type: 'null'
                    standard:
                      type: boolean
                  required:
                    - audience
                    - write
                    - standard
                  additionalProperties: false
                - type: 'null'
            role:
              anyOf:
                - type: string
                  enum:
                    - admin
                    - partner
                    - approver
                    - ci-approver
                    - app-owner
                    - member
                - type: 'null'
            presets:
              maxItems: 4
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^(?:[a-z-]+|faehigkeiten:[a-z]+)$
                  standard:
                    type: boolean
                  current:
                    type: boolean
                required:
                  - id
                  - standard
                  - current
                additionalProperties: false
            more:
              maxItems: 20
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^(?:[a-z-]+|faehigkeiten:[a-z]+)$
                  standard:
                    type: boolean
                  current:
                    type: boolean
                required:
                  - id
                  - standard
                  - current
                additionalProperties: false
            rows:
              maxItems: 500
              type: array
              items:
                type: object
                properties:
                  store:
                    type: string
                    enum:
                      - mapping
                      - audience
                      - faehigkeiten
                      - rollout
                      - levels
                      - clients
                      - signin
                      - partners
                      - agents
                      - ci-approvers
                      - allow
                  target:
                    type: object
                    properties:
                      kind:
                        type: string
                        maxLength: 40
                      id:
                        type: string
                        maxLength: 300
                      name:
                        type: string
                        maxLength: 200
                    required:
                      - kind
                      - id
                      - name
                    additionalProperties: false
                  audience:
                    oneOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: all
                        required:
                          - kind
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: groups
                          groups:
                            minItems: 1
                            type: array
                            items:
                              type: string
                        required:
                          - kind
                          - groups
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: me
                        required:
                          - kind
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: none
                        required:
                          - kind
                        additionalProperties: false
                  write:
                    oneOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: all
                        required:
                          - kind
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: groups
                          groups:
                            minItems: 1
                            type: array
                            items:
                              type: string
                        required:
                          - kind
                          - groups
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: me
                        required:
                          - kind
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            const: none
                        required:
                          - kind
                        additionalProperties: false
                  role:
                    type: string
                    enum:
                      - admin
                      - partner
                      - approver
                      - ci-approver
                      - app-owner
                      - member
                  level:
                    type: string
                    enum:
                      - 'off'
                      - 'on'
                      - approval
                  classes:
                    maxItems: 10
                    type: array
                    items:
                      type: string
                      maxLength: 40
                  count:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  via:
                    maxItems: 20
                    type: array
                    items:
                      type: string
                      maxLength: 200
                  editable:
                    type: boolean
                  home:
                    type: string
                    maxLength: 300
                required:
                  - store
                  - target
                  - editable
                  - home
                additionalProperties: false
            exceptions:
              maxItems: 200
              type: array
              items:
                type: object
                properties:
                  store:
                    type: string
                    enum:
                      - mapping
                      - audience
                      - faehigkeiten
                      - rollout
                      - levels
                      - clients
                      - signin
                      - partners
                      - agents
                      - ci-approvers
                      - allow
                  subject:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - app
                          - system
                          - resource
                          - suite
                          - group
                          - person
                      id:
                        type: string
                        minLength: 1
                        maxLength: 300
                      name:
                        type: string
                        maxLength: 200
                    required:
                      - kind
                      - id
                      - name
                    additionalProperties: false
                  person:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                        maxLength: 200
                    required:
                      - id
                      - name
                    additionalProperties: false
                  what:
                    type: string
                    enum:
                      - read
                      - write
                      - allow
                      - ended
                  by:
                    anyOf:
                      - type: string
                        maxLength: 200
                      - type: 'null'
                  at:
                    anyOf:
                      - type: string
                        maxLength: 40
                      - type: 'null'
                  reset:
                    type: boolean
                required:
                  - store
                  - subject
                  - person
                  - what
                  - by
                  - at
                  - reset
                additionalProperties: false
            summary:
              type: object
              properties:
                people:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: 'null'
                groups:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                apps:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                systems:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                sources:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                exceptions:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
                - people
                - groups
                - apps
                - systems
                - sources
                - exceptions
              additionalProperties: false
            canEdit:
              type: boolean
            state:
              type: string
              maxLength: 64
          required:
            - subject
            - direction
            - forWhom
            - role
            - presets
            - more
            - rows
            - exceptions
            - summary
            - canEdit
          additionalProperties: false
      required:
        - rights
      additionalProperties: false
    Fehler:
      type: object
      description: >-
        Eine Ablehnung: ein fester Code und ein Satz auf Deutsch, der sagt, was
        zu tun ist.
      properties:
        error:
          type: string
          description: Der Code (`not_found`, `forbidden`, `invalid_input` …).
          examples:
            - forbidden
        message:
          type: string
          description: Der Grund in Worten.
          examples:
            - Nur für Admins dieses Mandanten
        reason:
          type: string
          description: Ein fester Code für den Grund, wo es einen gibt.
          examples:
            - admins_only
      required:
        - error
        - message
  responses:
    Fehler401:
      description: 'Anmeldung nötig: Der Bearer-Token fehlt oder gilt nicht mehr.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler403:
      description: Die Person darf das nicht (zum Beispiel nur Admins des Mandanten).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
    Fehler404:
      description: Das Objekt ist auf diesem Node nicht bekannt.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Fehler'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Ein Access-Token des Node. Die Console holt ihn über die Anmeldung des
        Node (`/oauth/authorize`, PKCE, Client `mono-console`); in der
        Entwicklung nimmt ein Node mit Dev-Anmeldung auch einen Dev-Token.

````

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