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
channelpolicy, withmanage_channel_access_ruleson the channel. - with
team_id, andmanage_team_access_ruleson that team, the team's ownteampolicy or aparentpolicy that belongs to the team (itsscope_idis the team, or all its assigned channels are in the team).
Request
Responses
- 200
- 400
- 401
- 403
- 500
- 501
Access control policies active status updated successfully.
Invalid or missing parameters in URL or request body
No access token provided
Do not have appropriate permissions
Something went wrong with the server
Feature is disabled