Skip to main content

Turn auto-add on or off for access control policies

PUT 

/api/v4/access_control_policies/activate

Turns auto-add on or off for a batch of access control policies. From Mattermost v12.0, active: true sets auto_add to always on each policy's membership rule, and active: false turns auto-add off. Returns the updated policies, whose active field shows whether auto-add is on.

Minimum server version: 11.3

Permissions​

Must have the manage_system permission, or every policy in entries must be one of:

  • a channel policy, with manage_channel_access_rules on the channel.
  • with team_id, and manage_team_access_rules on that team, the team's own team policy or a parent policy that belongs to the team (its scope_id is the team, or all its assigned channels are in the team).

Request​

Responses​

Access control policies active status updated successfully.