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

# List policy rules for an organization

> Returns the organization's active expense policy rules. These are the rules the organization's expenses are checked against during approval, and the same rules its employees see in the apps. The list is empty when the organization has no policy rules. The caller must be an administrator of the organization.




## OpenAPI

````yaml /openapi/findity-admin-api.json get /organizations/{organizationId}/policies/rules
openapi: 3.1.0
info:
  title: Findity Admin API
  description: Findity Admin API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/admin
  - url: https://api.findity.com/api/v1/admin
security:
  - bearerAuth: []
paths:
  /organizations/{organizationId}/policies/rules:
    get:
      tags:
        - Policies
      summary: List policy rules for an organization
      description: >
        Returns the organization's active expense policy rules. These are the
        rules the organization's expenses are checked against during approval,
        and the same rules its employees see in the apps. The list is empty when
        the organization has no policy rules. The caller must be an
        administrator of the organization.
      operationId: adminListPolicyRules
      parameters:
        - name: organizationId
          in: path
          required: true
          description: >
            Required. String. The organization's internal ID (32-character hex
            string) or its `externalSourceId`. When the value matches the format
            of an internal ID, the internal ID takes precedence. The caller must
            be an administrator of the organization.
          schema:
            type: string
            example: 05b8daba9ba14a49846fe77883248cf0
        - $ref: '#/components/parameters/sortWithColonSyntax'
          description: >
            Specifies the property and direction for sorting the results. Each
            sorting criterion must use the `property:direction` format (e.g.,
            `name:asc` or `date:desc`). You can apply multiple sorts by
            providing a comma-separated list (`?sort=name:desc,date:asc`) or by
            repeating the parameter (`?sort=name:desc&sort=date:asc`). Sortable
            properties are `id` and `rule`; other properties are ignored.
            Defaults to `id:asc` when omitted.
        - name: max
          in: query
          required: false
          description: >
            Optional. Integer. The maximum number of policy rules to return,
            from 1 to 1000. Defaults to 10.
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 10
        - name: offset
          in: query
          required: false
          description: >
            Optional. Integer. The number of policy rules to skip before the
            first one returned, for paging: 0 or more. Defaults to 0.
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArrayOfPolicyRules'
              example:
                meta:
                  count: 2
                  total: 2
                data:
                  - id: '123'
                    rule: Alcohol is not reimbursed.
                    levels:
                      - USER
                  - id: '124'
                    rule: Meals over 500 SEK need approval from a manager.
                    levels:
                      - ADMIN
                      - USER
        '400':
          description: '`max` or `offset` is not a valid number'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
              examples:
                invalid max:
                  value:
                    result: error
                    code: INVALID_PARAMETER
                    description: 'max must be an integer between 1 and 1000, was: 0'
        '401':
          description: The access token is missing, invalid or expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/401Error'
              example:
                result: unauthorized
        '404':
          description: >-
            The organization does not exist, or the caller is not an
            administrator of it
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
              examples:
                organization not found:
                  value:
                    result: error
                    code: ORGANIZATION_NOT_FOUND
                    description: Organization not found
components:
  parameters:
    sortWithColonSyntax:
      name: sort
      in: query
      description: >
        Specifies the property and direction for sorting the results.  Each
        sorting criterion must use the `property:direction` format (e.g.,
        `name:asc` or `date:desc`).  You can apply multiple sorts by providing a
        comma-separated list (`?sort=name:desc,date:asc`)  or by repeating the
        parameter (`?sort=name:desc&sort=date:asc`).
      required: false
      style: form
      explode: true
      schema:
        type: array
        items:
          type: string
          pattern: ^[a-zA-Z]+:(asc|desc)$
  schemas:
    ArrayOfPolicyRules:
      type: object
      properties:
        meta:
          type: object
          properties:
            count:
              type: integer
              description: Number of policy rules returned in this response page.
            total:
              type: integer
              description: >-
                Total number of active policy rules of the organization across
                all pages.
          required:
            - count
            - total
        data:
          type: array
          items:
            $ref: '#/components/schemas/PolicyRule'
      required:
        - meta
        - data
    400Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
    401Error:
      type: object
      properties:
        result:
          type: string
      example:
        result: unauthorized
    404Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
      example:
        result: error
        code: ORGANIZATION_NOT_FOUND
        description: 'Failed to get organization for id: {orgId}'
    PolicyRule:
      type: object
      description: A rule from the organization's expense policy.
      properties:
        id:
          type: string
          description: Identifier of the policy rule.
          example: '123'
        rule:
          type: string
          description: The rule text.
          example: Alcohol is not reimbursed.
        levels:
          type: array
          description: >
            Who the rule applies to. `USER` rules apply to the employees
            submitting expenses, `ADMIN` rules to the people approving and
            administering them. Sorted alphabetically, and empty when the rule
            has no level.
          items:
            type: string
            enum:
              - ADMIN
              - USER
          example:
            - USER
      required:
        - id
        - rule
        - levels
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````