Create Access Policies
You can create a new access policy from scratch by using the Create Policy option or use an available Genesys Cloud designed prebuilt policy template, edit it, and save it as a policy.
Create an access policy from a prebuilt template
To create an access policy from an existing policy template, do the following:
- Click Admin.
- Under People & Permissions, click Access Policies.
- Click Templates.
- Select an existing template. Currently, Genesys Cloud provides the following access policy templates for you to get started:
- Click the policy template based on your requirement. The template details appear.
- Edit the policy name and description.
- Modify the domain, entity, and action fields if you’re specifying a different target for the policy.
- (Optional) Allow the policy to be enabled immediately by toggling the Enable Policy option. You can also enable a policy later by editing the policy. For more information, see Enable Access Policy.
- Modify the subject, effect, and condition sections in the Policy JSON, if necessary, to meet your organizational needs.Note:
- For more information about fields used in Policy JSON, see the Definitions used in ABAC section.
- For more information about preset attributes list used in Policy JSON, see Restricted fields value list.
- For a detailed information about access policy attributes, see Attribute based access control.
- To validate the JSON syntax, click Validate Syntax in the Validate Syntax tab. Resolve any syntactical errors, and proceed with saving the policy. In case you don’t validate syntax explicitly, Genesys Cloud automatically validates syntax when you save the policy. The syntax validation step validates the following:
- Whether the mandatory fields are available.
- The listed attributes are valid for the specified target.
- All attribute comparisons are valid for their respective data types.
- Any preset attribute names don’t conflict with the ones defined in the system.
- Click Save as Policy.
- To verify if the policy works as expected, click the Test Policy tab and provide sample data and click Test Policy.
- To go back to the policies page, click Cancel.
Sample prebuilt templates
Currently, Genesys Cloud includes the following access policy templates:
Create an access policy using the Create Policy feature
To create an access policy from scratch, do the following:
- Click Admin.
- Under People & Permissions, click Access Policies.
- Click Create Policy.
- Enter the policy name and description.
- Specify the domain, entity, and action fields based on your policy requirements. You can refer the prebuilt templates for creating your own policy.
- (Optional) Allow the policy to be enabled immediately by toggling the Enable Policy option. You can enable a policy later by editing the policy. For more information, see Enable Access Policy.
- Define the subject, effect, and condition sections in the Policy JSON based on your organizational needs. Note:
- For more information about fields used in Policy JSON, see the Definitions used in ABAC section.
- For more information about the preset attributes list used in Policy JSON, see Restricted fields value list.
- For a detailed information about access policy attributes, see Attribute based access control.
- To validate the JSON syntax, click Validate Syntax in the Validate Syntax tab. Resolve any syntactical errors, and proceed with saving the policy. In case you don’t validate syntax explicitly, Genesys Cloud automatically validates syntax when you save the policy. The syntax validation step validates the following:
- Whether the mandatory fields are available.
- The listed attributes are valid for the specified target.
- All attribute comparisons are valid for their respective data types.
- Any preset attribute names don’t conflict with ones defined in the system.
- Click Save.
- To verify if the policy works as expected, click the Test Policy tab and provide sample data and click Test Policy.
- To go back to the policies page, click Cancel.
[NEXT] Was this article helpful?
Get user feedback about articles.