@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class UsersApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UsersApi.ListUsersOptionalParameters
Manage optional parameters to listUsers.
|
| Constructor and Description |
|---|
UsersApi() |
UsersApi(ApiClient apiClient) |
public UsersApi()
public UsersApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic AnonymizeUsersResponse anonymizeUsers(AnonymizeUsersRequest body) throws ApiException
See anonymizeUsersWithHttpInfo(com.datadog.api.client.v2.model.AnonymizeUsersRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<AnonymizeUsersResponse> anonymizeUsersAsync(AnonymizeUsersRequest body)
See anonymizeUsersWithHttpInfoAsync(com.datadog.api.client.v2.model.AnonymizeUsersRequest).
body - (required)public ApiResponse<AnonymizeUsersResponse> anonymizeUsersWithHttpInfo(AnonymizeUsersRequest body) throws ApiException
user_access_manage permission.body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<AnonymizeUsersResponse>> anonymizeUsersWithHttpInfoAsync(AnonymizeUsersRequest body)
See anonymizeUsersWithHttpInfo(com.datadog.api.client.v2.model.AnonymizeUsersRequest).
body - (required)public UserResponse createUser(UserCreateRequest body) throws ApiException
See createUserWithHttpInfo(com.datadog.api.client.v2.model.UserCreateRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<UserResponse> createUserAsync(UserCreateRequest body)
See createUserWithHttpInfoAsync(com.datadog.api.client.v2.model.UserCreateRequest).
body - (required)public ApiResponse<UserResponse> createUserWithHttpInfo(UserCreateRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserResponse>> createUserWithHttpInfoAsync(UserCreateRequest body)
See createUserWithHttpInfo(com.datadog.api.client.v2.model.UserCreateRequest).
body - (required)public void deleteUserInvitations(UUID userId) throws ApiException
userId - The UUID of the user whose pending invitations should be canceled. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteUserInvitationsAsync(UUID userId)
userId - The UUID of the user whose pending invitations should be canceled. (required)public ApiResponse<Void> deleteUserInvitationsWithHttpInfo(UUID userId) throws ApiException
user_access_invite
permission.userId - The UUID of the user whose pending invitations should be canceled. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteUserInvitationsWithHttpInfoAsync(UUID userId)
userId - The UUID of the user whose pending invitations should be canceled. (required)public void disableUser(String userId) throws ApiException
userId - The ID of the user. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> disableUserAsync(String userId)
userId - The ID of the user. (required)public ApiResponse<Void> disableUserWithHttpInfo(String userId) throws ApiException
userId - The ID of the user. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> disableUserWithHttpInfoAsync(String userId)
userId - The ID of the user. (required)public UserResponse getCurrentUser() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<UserResponse> getCurrentUserAsync()
public ApiResponse<UserResponse> getCurrentUserWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserResponse>> getCurrentUserWithHttpInfoAsync()
public UserInvitationResponse getInvitation(String userInvitationUuid) throws ApiException
userInvitationUuid - The UUID of the user invitation. (required)ApiException - if fails to make API callpublic CompletableFuture<UserInvitationResponse> getInvitationAsync(String userInvitationUuid)
userInvitationUuid - The UUID of the user invitation. (required)public ApiResponse<UserInvitationResponse> getInvitationWithHttpInfo(String userInvitationUuid) throws ApiException
userInvitationUuid - The UUID of the user invitation. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserInvitationResponse>> getInvitationWithHttpInfoAsync(String userInvitationUuid)
userInvitationUuid - The UUID of the user invitation. (required)public UserResponse getUser(String userId) throws ApiException
userId - The ID of the user. (required)ApiException - if fails to make API callpublic CompletableFuture<UserResponse> getUserAsync(String userId)
userId - The ID of the user. (required)public ApiResponse<UserResponse> getUserWithHttpInfo(String userId) throws ApiException
user_id.userId - The ID of the user. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserResponse>> getUserWithHttpInfoAsync(String userId)
userId - The ID of the user. (required)public UserResponse listUserOrganizations(String userId) throws ApiException
userId - The ID of the user. (required)ApiException - if fails to make API callpublic CompletableFuture<UserResponse> listUserOrganizationsAsync(String userId)
See listUserOrganizationsWithHttpInfoAsync(java.lang.String).
userId - The ID of the user. (required)public ApiResponse<UserResponse> listUserOrganizationsWithHttpInfo(String userId) throws ApiException
userId - The ID of the user. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserResponse>> listUserOrganizationsWithHttpInfoAsync(String userId)
userId - The ID of the user. (required)public PermissionsResponse listUserPermissions(String userId) throws ApiException
userId - The ID of the user. (required)ApiException - if fails to make API callpublic CompletableFuture<PermissionsResponse> listUserPermissionsAsync(String userId)
userId - The ID of the user. (required)public ApiResponse<PermissionsResponse> listUserPermissionsWithHttpInfo(String userId) throws ApiException
userId - The ID of the user. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<PermissionsResponse>> listUserPermissionsWithHttpInfoAsync(String userId)
userId - The ID of the user. (required)public UsersResponse listUsers() throws ApiException
See listUsersWithHttpInfo(com.datadog.api.client.v2.api.UsersApi.ListUsersOptionalParameters).
ApiException - if fails to make API callpublic CompletableFuture<UsersResponse> listUsersAsync()
See listUsersWithHttpInfoAsync(com.datadog.api.client.v2.api.UsersApi.ListUsersOptionalParameters).
public UsersResponse listUsers(UsersApi.ListUsersOptionalParameters parameters) throws ApiException
See listUsersWithHttpInfo(com.datadog.api.client.v2.api.UsersApi.ListUsersOptionalParameters).
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<UsersResponse> listUsersAsync(UsersApi.ListUsersOptionalParameters parameters)
See listUsersWithHttpInfoAsync(com.datadog.api.client.v2.api.UsersApi.ListUsersOptionalParameters).
parameters - Optional parameters for the request.public PaginationIterable<User> listUsersWithPagination()
See listUsersWithHttpInfo(com.datadog.api.client.v2.api.UsersApi.ListUsersOptionalParameters).
public PaginationIterable<User> listUsersWithPagination(UsersApi.ListUsersOptionalParameters parameters)
See listUsersWithHttpInfo(com.datadog.api.client.v2.api.UsersApi.ListUsersOptionalParameters).
public ApiResponse<UsersResponse> listUsersWithHttpInfo(UsersApi.ListUsersOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UsersResponse>> listUsersWithHttpInfoAsync(UsersApi.ListUsersOptionalParameters parameters)
See listUsersWithHttpInfo(com.datadog.api.client.v2.api.UsersApi.ListUsersOptionalParameters).
parameters - Optional parameters for the request.public UserInvitationsResponse sendInvitations(UserInvitationsRequest body) throws ApiException
See sendInvitationsWithHttpInfo(com.datadog.api.client.v2.model.UserInvitationsRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<UserInvitationsResponse> sendInvitationsAsync(UserInvitationsRequest body)
See sendInvitationsWithHttpInfoAsync(com.datadog.api.client.v2.model.UserInvitationsRequest).
body - (required)public ApiResponse<UserInvitationsResponse> sendInvitationsWithHttpInfo(UserInvitationsRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserInvitationsResponse>> sendInvitationsWithHttpInfoAsync(UserInvitationsRequest body)
See sendInvitationsWithHttpInfo(com.datadog.api.client.v2.model.UserInvitationsRequest).
body - (required)public UserResponse updateCurrentUser(UserUpdateRequest body) throws ApiException
See updateCurrentUserWithHttpInfo(com.datadog.api.client.v2.model.UserUpdateRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<UserResponse> updateCurrentUserAsync(UserUpdateRequest body)
See updateCurrentUserWithHttpInfoAsync(com.datadog.api.client.v2.model.UserUpdateRequest).
body - (required)public ApiResponse<UserResponse> updateCurrentUserWithHttpInfo(UserUpdateRequest body) throws ApiException
name
, title, email, and disabled status. The id
field in the request body must match the authenticated user's UUID; a mismatch returns
a 422 error. Email address changes are recorded in the audit trail. Requires the
user_self_profile_write permission.body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserResponse>> updateCurrentUserWithHttpInfoAsync(UserUpdateRequest body)
See updateCurrentUserWithHttpInfo(com.datadog.api.client.v2.model.UserUpdateRequest).
body - (required)public UserResponse updateUser(String userId, UserUpdateRequest body) throws ApiException
See updateUserWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UserUpdateRequest).
userId - The ID of the user. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<UserResponse> updateUserAsync(String userId, UserUpdateRequest body)
See updateUserWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.UserUpdateRequest).
userId - The ID of the user. (required)body - (required)public ApiResponse<UserResponse> updateUserWithHttpInfo(String userId, UserUpdateRequest body) throws ApiException
userId - The ID of the user. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Not found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserResponse>> updateUserWithHttpInfoAsync(String userId, UserUpdateRequest body)
See updateUserWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UserUpdateRequest).
userId - The ID of the user. (required)body - (required)Copyright © 2026. All rights reserved.