provider User settings GET /api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}
@utdk/launchdarkly /api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}
Get flag setting for user
Get a single flag setting for a user by flag key. <br /><br />The `_value` is the flag variation that the user receives. The `setting` indicates whether you've explicitly targeted a user to receive a particular variation. For example, if you have turned off a feature flag for a user, this setting will be `false`. The example response indicates that the user `Abbie_Braun` has the `sort.order` flag enabled.
projectKey path required
The project key
string
environmentKey path required
The environment key
string
userKey path required
The user key
string
featureFlagKey path required
The feature flag key
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getuserflagsetting
GET/api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey}
Get a single flag setting for a user by flag key. <br /><br />The `_value` is the flag variation that the user receives. The `setting` indicates whether you've explicitly targeted a user to receive a particular variation. For example, if you have turned off a feature flag for a user, this setting will be `false`. The example response indicates that the user `Abbie_Braun` has the `sort.order` flag enabled.

Parameters

required

The project key

required

The environment key

required

The user key

required

The feature flag key

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.getuserflagsetting()