Skip to main content

Assign an access control policy to channels or teams

POST 

/api/v4/access_control_policies/:policy_id/assign

Assigns an access control policy to a list of channels and/or teams.

Minimum server version: 10.9

Permissions​

Must have the manage_system permission, or manage_team_access_rules on the team in team_id for a parent policy that belongs to that team (its scope_id is the team, or all its assigned channels are in the team). A team admin must give at least one channel in channel_ids, all in that team, and can't use team_ids.

Request​

Responses​

Policy assigned to the channels and/or teams successfully.