Add channels to a granular data retention policy
Adds channels to a granular data retention policy. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_write_compliance_data_retention` permission. ##### License Requires an E20 license.
Add teams to a granular data retention policy
Adds teams to a granular data retention policy. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_write_compliance_data_retention` permission. ##### License Requires an E20 license.
Create a new granular data retention policy
Creates a new granular data retention policy with the specified display name and post duration. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_write_compliance_data_retention` permission. ##### License Requires an E20 license.
Delete a granular data retention policy
Deletes a granular data retention policy. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_write_compliance_data_retention` permission. ##### License Requires an E20 license.
Get the policies which are applied to a user's channels
Gets the policies which are applied to the all of the channels to which a user belongs. Minimum server version: 5.35 ##### Permissions Must be logged in as the user or have the `manage_system` permission. ##### License Requires an E20 license.
Get the channels for a granular data retention policy
Gets the channels to which a granular data retention policy is applied. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_read_compliance_data_retention` permission. ##### License Requires an E20 license.
Get the granular data retention policies
Gets details about the granular (i.e. team or channel-specific) data retention policies from the server. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_read_compliance_data_retention` permission. ##### License Requires an E20 license.
Get the number of granular data retention policies
Gets the number of granular (i.e. team or channel-specific) data retention policies from the server. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_read_compliance_data_retention` permission. ##### License Requires an E20 license.
Get the global data retention policy
Gets the current global data retention policy details from the server, including what data should be purged and the cutoff times for each data type that should be purged. Minimum server version: 4.3 ##### Permissions Requires an active session but no other permissions. ##### License Requires an E20 license.
Get a granular data retention policy
Gets details about a granular data retention policies by ID. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_read_compliance_data_retention` permission. ##### License Requires an E20 license.
Get the policies which are applied to a user's teams
Gets the policies which are applied to the all of the teams to which a user belongs. Minimum server version: 5.35 ##### Permissions Must be logged in as the user or have the `manage_system` permission. ##### License Requires an E20 license.
Get the teams for a granular data retention policy
Gets the teams to which a granular data retention policy is applied. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_read_compliance_data_retention` permission. ##### License Requires an E20 license.
Patch a granular data retention policy
Patches (i.e. replaces the fields of) a granular data retention policy. If any fields are omitted, they will not be changed. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_write_compliance_data_retention` permission. ##### License Requires an E20 license.
Delete channels from a granular data retention policy
Delete channels from a granular data retention policy. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_write_compliance_data_retention` permission. ##### License Requires an E20 license.
Delete teams from a granular data retention policy
Delete teams from a granular data retention policy. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_write_compliance_data_retention` permission. ##### License Requires an E20 license.
Search for the channels in a granular data retention policy
Searches for the channels to which a granular data retention policy is applied. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_read_compliance_data_retention` permission. ##### License Requires an E20 license.
Search for the teams in a granular data retention policy
Searches for the teams to which a granular data retention policy is applied. Minimum server version: 5.35 ##### Permissions Must have the `sysconsole_read_compliance_data_retention` permission. ##### License Requires an E20 license.