Mail Policy API
The Mail Policy APIs help you create and apply organization policies to users or groups, create restrictions and assign these restrictions to policies.
While using any Mail Policy API, use the OAuth Scope ZohoMail.organization.policy.
Method Name | URL | Method Type | OAuth Scope | Purpose |
Create Org Policy | /api/organization/{zoid}/policy | POST | ZohoMail.organization.policy | To create an organization policy. |
Create Email Restriction | /api/organization/{zoid}/policy | POST | To create an email restriction. | |
Create Account Restriction | /api/organization/{zoid}/policy | POST | To create an account restriction. | |
Create Access Restriction | /api/organization/{zoid}/policy | POST | To create an access restriction. | |
Create Forward Restriction | /api/organization/{zoid}/policy | POST | To create a forward restriction. | |
Get All Policies | /api/organization/{zoid}/policy | GET | To retrieve all policies. | |
Get All Email Restrictions | /api/organization/{zoid}/policy/mailRestriction | GET | To retrieve all email restrictions. | |
Get All Account Restrictions | /api/organization/{zoid}/policy/accountRestriction | GET | To retrieve all account restrictions. | |
Get All Access Restrictions | /api/organization/{zoid}/policy/accessRestriction | GET | To retrieve all access restrictions. | |
Get All Forward Restrictions | /api/organization/{zoid}/policy/mailForwardPolicy | GET | To retrieve all forward restrictions. | |
Get Policy Users | /api/organization/{zoid}/policy/{policyId}/getUsers | GET | To retrieve all policy users. | |
Get Policy Groups | /api/organization/{zoid}/policy/{policyId}/getGroups | GET | To retrieve all policy groups. | |
Apply Policy to Users/Groups | /api/organization/{zoid}/policy/{policyId} | PUT | To apply policy to user/groups. | |
Assign Email Restriction to Policy | /api/organization/{zoid}/policy/{policyId} | PUT | To assign email restriction to a policy. | |
Assign Account Restriction to Policy | /api/organization/{zoid}/policy/{policyId} | PUT | To assign account restriction to a policy. | |
Assign Access Restriction to Policy | /api/organization/{zoid}/policy/{policyId} | PUT | To assign access restriction to a policy. | |
Assign Forward Restriction to Policy | /api/organization/{zoid}/policy/{policyId} | PUT | To assign forward restriction to a policy. |