# List all policies in enterprise Returns Policies list Endpoint: GET /enterprise/{enterprise_id}/policy/ Version: 1.0.0 Security: apiKey ## Path parameters: - `enterprise_id` (string, required) ID of the enterprise ## Query parameters: - `name` (string) filter by policy name - `is_active` (boolean) filter by Active policies - `limit` (integer) Number of results to return per page. - `offset` (integer) Return results from this index. ## Response 200 fields (application/json): - `count` (integer, required) - `next` (string,null) - `previous` (string,null) - `results` (array, required) - `results.uuid` (string) Unique Policy identifier - `results.enterprise` (string, required) Url of the enterprise resource - `results.url` (string) URL link to policy - `results.name` (string, required) Name of the Policy - `results.description` (string) Details regarding the Policy - `results.device_count` (integer) Count of Devices with this policy applied - `results.google_policy_id` (string) Id of the Google policy - `results.policy` (object, required) - `results.policy.keyguardDisabled` (boolean) Should KeyGuard be disabled? - `results.policy.safeBootDisabled` (boolean) Should SafeBoot be disabled? - `results.policy.statusBarDisabled` (boolean) Should Status Bar be disabled? - `results.policy.factoryResetDisabled` (boolean) Should Factory Reset be disabled? - `results.policy.screenshotDisabled` (boolean) Should Screenshot capability be disabled? - `results.policy.usbConnectivityDisabled` (boolean) Should USB connectivity be disabled? - `results.policy.smsDisabled` (boolean) Should SMS functionality be disabled? - `results.policy.outgoingCallsDisabled` (boolean) Should Outgoing Calls be disabled? - `results.policy.cameraDisabled` (boolean) Should Camera be disabled? - `results.policy.nfcBeamDisabled` (boolean) Should NFC capability be disabled? - `results.policy.disablePlayStore` (boolean) Should Google Play Store be disabled on the device? - `results.policy.usbFileTransferDisabled` (boolean) Should USB File transfer capability be disabled? - `results.policy.tetheringDisabled` (boolean) Should USB Tethering capability be enabled? - `results.policy.dateTimeConfigDisabled` (boolean) Should Date/Time configuration capability be disabled? - `results.policy.appUninstallDisabled` (boolean) Should App uninstall capability be disabled? - `results.policy.googleAssistantDisabled` (boolean) Should Google Assistant feature be disabled? - `results.policy.disableLocalAppInstall` (boolean) Should Side-loading of Applications be disabled? - `results.policy.adbDisabled` (boolean) Should Android Debugger be disabled? - `results.policy.phonePolicy` (object) Rules regarding restricting calls from/to phone-numbers - `results.policy.phonePolicy.incomingNumbers` (array) List of permitted incoming phone numbers to recieve calls from - `results.policy.phonePolicy.outgoingNumbers` (array) List of permitted outgoing phone numbers to make calls to - `results.policy.phonePolicy.dialer` (string) Pick a dialer - System default or Esper Dialer Enum: "DEFAULT", "SHOONYA" - `results.policy.phonePolicy.allowUssdCodes` (boolean) Allow USSD codes to be dialed. Default is false - `results.policy.frpGoogles` (array) Details regarding Factory Reset Protection capability. List of permitted Google People IDs, emails and such - `results.policy.frpGoogles.type` (string) Type of User account provided - USER or ADMIN Enum: "USER", "ADMIN" - `results.policy.frpGoogles.email` (string) Email id to be used for Factory protection. This will be asked on the Device's UI - `results.policy.frpGoogles.googleId` (string) Google People ID associated with the above email (https://developers.google.com/people/api/rest/v1/people/get) - `results.policy.googleAccountPermission` (object) Details regarding Google accounts to be associated with the device - `results.policy.googleAccountPermission.maxAccount` (integer) Maximum number of Google accounts to be associated with this device. (Max = 10) - `results.policy.googleAccountPermission.emails` (array) List of emails to be associated - `results.policy.googleAccountPermission.domains` (array) List of domains that can be associated - `results.policy.devicePasswordPolicy` (object) Define the Password Policy for the device - `results.policy.devicePasswordPolicy.passwordQuality` (string) What is the type of password quality to apply to the device? Enum: "PASSWORD_QUALITY_ALPHABETIC", "PASSWORD_QUALITY_ALPHANUMERIC", "PASSWORD_QUALITY_BIOMETRIC_WEAK", "PASSWORD_QUALITY_COMPLEX", "PASSWORD_QUALITY_NUMERIC", "PASSWORD_QUALITY_NUMERIC_COMPLEX", "PASSWORD_QUALITY_SOMETHING", "PASSWORD_QUALITY_UNSPECIFIED" - `results.policy.minimumPasswordLength` (integer) What is the minimum length for your device's password - `results.policy.permissionPolicy` (string) What permission should be applied by default for all apps, henceforth? Enum: "PERMISSION_POLICY_PROMPT", "PERMISSION_POLICY_AUTO_GRANT", "PERMISSION_POLICY_AUTO_DENY" - `results.policy.deviceUpdatePolicy` (object) Configuration regarding Device OS Updates - `results.policy.deviceUpdatePolicy.type` (string) What type of installation is preferred? Enum: "TYPE_INSTALL_AUTOMATIC", "TYPE_POSTPONE", "TYPE_INSTALL_WINDOWED", "TYPE_INSTALL_DISABLED" - `results.policy.deviceUpdatePolicy.maintenanceStart` (integer) If the type is TYPE_INSTALL_WINDOWED, when should the maintenance start? - `results.policy.deviceUpdatePolicy.maintenanceEnd` (integer) If the type is TYPE_INSTALL_WINDOWED, when should the maintenance end? - `results.policy.settingsAccessLevel` (string) Type of Android settings app to be applied? Default System Settings or ESPER Settings App? Enum: "SYSTEM", "SHOONYA", "NONE" - `results.policy.settingsAppPassword` (string) Lock Password (optional) for the ESPER Settings app - `results.updated_on` (string) Last-Updated Timestamp of Policy - `results.created_on` (string) Creation Timestamp of Policy - `results.is_active` (boolean) Is this policy currently active ## Response 401 fields (application/json): - `errors` (array) - `message` (string) - `status` (integer) ## Response 404 fields (application/json): - `errors` (array) - `message` (string) - `status` (integer) ## Response 500 fields (application/json): - `errors` (array) - `message` (string) - `status` (integer)