---
title: "Launches a process that generates a file with a 24 hour lifetime that contains all access rules for all sites that belong to a given organization. The content of the generated file follows the AccessRuleLightArray schema structure as described in the schemas section below."
method: POST
path: "/OrganizationKindooGetEnvironmentsAccessRules"
tags: ["Organization Data"]
---

# Launches a process that generates a file with a 24 hour lifetime that contains all access rules for all sites that belong to a given organization. The content of the generated file follows the AccessRuleLightArray schema structure as described in the schemas section below.

`POST /OrganizationKindooGetEnvironmentsAccessRules`

## Response `200`

A list of access rules

- AccessRuleLight[]
  - `ID` integer
  - `Name` string
  - `SiteID` integer
  - `SiteName` string
  - `IsSetForAllEntryPoints` boolean
  - `LinkedEntryPoints` AccessRuleLightEntryPoint[]
    - `ID` integer
    - `Name` string
  - `LinkedUsers` AccessRuleLightUser[]
    - `EUID` integer
    - `UserID` integer
    - `FirstName` string
    - `LastName` string
    - `Username` string
    - `HasAcceptedInvitation` boolean
    - `HasVerifiedAccount` boolean
  - `AccessSchedule` AccessRuleAccessSchedule
    - `IsAlways` boolean
    - `IsWeekly` boolean
    - `IsFromTo` boolean
    - `WeeklyAccessRights` AccessRuleAccessScheduleWeekly[]
      - `DayOfWeekName` string
      - `DayOfWeek` integer
      - `FromHour` string
      - `ToHour` string
      - `TimeZone` string
    - `FromToAccessRights` AccessRuleAccessScheduleFromTo[]
      - `FromDateTime` string, date-time — format YYYY-MM-DDTHH:mm:ss
      - `ToDateTime` string, date-time — format YYYY-MM-DDTHH:mm:ss
      - `TimeZone` string
  - `HolidayAndSpecialEvents` AccessRuleHolidaysAndSpecialEventsDTO[]
    - `ID` integer
    - `FromDate` string, date-time — format YYYY-MM-DDTHH:mm:ss
    - `ToDate` string, date-time — format YYYY-MM-DDTHH:mm:ss
    - `TimeZone` string
    - `IsHoliday` boolean
    - `GrantAccessRights` boolean
    - `HolidayOrSpecialEventName` string
    - `HolidayCountryID` integer
    - `HolidayCountryName` string

## Other responses

- `303` — See Other
- `401` — Unauthorized - your session is not valid

---

[API](https://skmtc.net/kindoo/apis/kindoo-tech.md) · [All operations](https://skmtc.net/kindoo/apis/kindoo-tech/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kindoo/kindoo-tech/versions/0f2499440f4b/schema)
