---
title: Interactions between environment and flag roles
slug: feature-experimentation/docs/interactions-between-environment-and-flag-roles
docTags: 
createdAt: 2026-08-05T20:39:57.000Z
---

Before you manage [environment roles](docId\:a8Lou8ccOZnqTR863LJGo) and [flag roles](docId\:F8tdFPnxECabBXsQkBqDt), it is important to understand how flags and environments interact in a Feature Experimentation project.

Each [flag rule](docId\:zfzSgUawnKhGc59SYlTbL) operates within a specific [environment](docId\:YpSOMYlWkUccLCL-uB-ZE), and the collection of a flag’s rules in an environment is called a [ruleset](docId:-yq2-thNRv7-SgwCXpG90). When applying granular permissions, the lower of the two roles (flag or environment) determines what actions a collaborator can perform within a ruleset.

See [Interactions between environment and flag rules with granular permissions](docId\:AzOxmAb1cxMjH_S5Tbgyj).
