• HOME
  • INTEGRATIONS
  • SDKS
  • GUIDES
  • API DOCS
No results for ""
EXPAND ALL
CLOSE
launchdarkly.com

EDIT ON GITHUB

Using tags

Read time: 1 minute
Last edited: Oct 22, 2020

Overview

This topic explains how custom roles use tags.

To learn more about how tags work within custom role policies, read Custom role concepts.

Adding tags to resources

You can add tags to resources in LaunchDarkly with the UI or API. To learn more, read Other flag settings.

Using tags in custom role policies

In the LaunchDarkly UI, you can only specify tags in custom roles from the advanced editor.

For example, the below statement allows a user with this role to perform all actions at the flag level for flags tagged tag1 and tag2.

1{
2 "resources": ["proj/*:env/*:flag/*;tag1,tag2"],
3 "actions": ["*"],
4 "effect": "allow"
5}

You can also separate multiple tags for a resource with statements to create an "or" condition.

In the example below, two statements your member access to flags tagged tag1 or tag2.

1{
2 "resources": ["proj/*:env/*:flag/*;tag1"],
3 "actions": ["*"],
4 "effect": "allow"
5},
6{
7 "resources": ["proj/*:env/*:flag/*;tag2"],
8 "actions": ["*"],
9 "effect": "allow"
10}