A first policy file often has email addresses in every rule. Adding one person meant editing five places. Groups fix that.
Define the group once:
"groups": {
"group:family": ["[email protected]", "[email protected]"],
"group:admins": ["[email protected]"]
}
Then use it as a source in your rules:
"grants": [
{
"src": ["group:family"],
"dst": ["tag:media"],
"ip": ["*"]
}
]
When someone new joins, you add them to the group and every rule follows. The name must start with group:, and a person can be in as many groups as you like.
The docs mention one limit that is easy to miss: a group cannot contain another group. So group:admins cannot simply be part of group:family; you list Alice in both.
Groups hold users, not devices. To group machines, use tags instead. And for one-off access, a single email address in a rule is still fine. I’d start a group as soon as the same list shows up twice.
Further reading: Tailnet policy file syntax