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
- 200
- 400
- 401
- 403
- 404
- 500
- 501
Policy assigned to the channels and/or teams successfully.
Invalid request, or an unknown team ID in team_ids.
No access token provided
Do not have appropriate permissions
Resource not found
Something went wrong with the server
team_ids is set and team membership policies aren't available: they need an Entry or Enterprise Advanced license, and attribute-based access control must be enabled.