Main Content

access-control-policy

Path to access control policy file

Syntax

--access-control-policy path

Description

--access-control-policy path specifies the path to the access control policy file on a server instance. Setting this property is optional. The default path is ./config/ac_policy.json.

If you enable access control by specifying the access-control-provider property, the access control policy file must exist in path; otherwise, the server instance fails to start.

After a server starts, it scans the policy file every five seconds for any changes, if access control is enabled. If the policy file is absent or contains errors, the server continues to run, but denies all requests and logs an error message in the main.log file.

Parameters

path specifies the path to the policy file.

Examples

Specify the path to the access control policy JSON file.

--access-control-policy ./config/ac_policy.json

Introduced in R2018b