You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[**deleteUser**](UsersApi.md#deleteUser) | **DELETE** /users/{projectKey}/{environmentKey}/{userKey} | Delete a user by ID.
8
8
[**getSearchUsers**](UsersApi.md#getSearchUsers) | **GET** /user-search/{projectKey}/{environmentKey} | Search users in LaunchDarkly based on their last active date, or a search query. It should not be used to enumerate all users in LaunchDarkly-- use the List users API resource.
9
+
[**getUser**](UsersApi.md#getUser) | **GET** /users/{projectKey}/{environmentKey}/{userKey} | Get a user by key.
9
10
[**getUsers**](UsersApi.md#getUsers) | **GET** /users/{projectKey}/{environmentKey} | List all users in the environment. Includes the total count of users. In each page, there will be up to 'limit' users returned (default 20). This is useful for exporting all users in the system for further analysis. Paginated collections will include a next link containing a URL with the next set of elements in the collection.
10
11
11
12
@@ -125,6 +126,63 @@ Name | Type | Description | Notes
var defaultClient =LaunchDarklyApi.ApiClient.instance;
144
+
145
+
// Configure API key authorization: Token
146
+
var Token =defaultClient.authentications['Token'];
147
+
Token.apiKey='YOUR API KEY';
148
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
149
+
//Token.apiKeyPrefix = 'Token';
150
+
151
+
var apiInstance =newLaunchDarklyApi.UsersApi();
152
+
153
+
var projectKey ="projectKey_example"; // String | The project key, used to tie the flags together under one project so they can be managed together.
154
+
155
+
var environmentKey ="environmentKey_example"; // String | The environment key, used to tie together flag configuration and users under one environment so they can be managed together.
156
+
157
+
var userKey ="userKey_example"; // String | The user's key.
158
+
159
+
160
+
varcallback=function(error, data, response) {
161
+
if (error) {
162
+
console.error(error);
163
+
} else {
164
+
console.log('API called successfully. Returned data: '+ data);
**projectKey** | **String**| The project key, used to tie the flags together under one project so they can be managed together. |
175
+
**environmentKey** | **String**| The environment key, used to tie together flag configuration and users under one environment so they can be managed together. |
0 commit comments