public class UsersApi extends Object
| Constructor and Description |
|---|
UsersApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<PageBeanUser> |
bulkGetUsers(List<String> accountId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<List<String>> username,
Optional<List<String>> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Bulk get users
Returns a [paginated](#pagination) list of the users specified by one or more account IDs.
|
io.reactivex.Single<List<UserMigrationBean>> |
bulkGetUsersMigration(Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<List<String>> username,
Optional<List<String>> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get account IDs for users
Returns the account IDs for the users specified in the `key` or `username` parameters.
|
io.reactivex.Single<User> |
createUser(UserWriteBean requestBody,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create user
Creates a user.
|
io.reactivex.Single<List<User>> |
getAllUsers(Optional<Integer> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all users
Returns a list of all (active and inactive) users.
|
io.reactivex.Single<List<User>> |
getAllUsersDefault(Optional<Integer> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all users default
Returns a list of all (active and inactive) users.
|
io.reactivex.Single<User> |
getUser(Optional<String> accountId,
Optional<String> username,
Optional<String> key,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get user
Returns a user.
|
io.reactivex.Single<List<ColumnItem>> |
getUserDefaultColumns(Optional<String> accountId,
Optional<String> username,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get user default columns
Returns the default [issue table columns](https://confluence.atlassian.com/x/XYdKLg) for the user.
|
io.reactivex.Single<UnrestrictedUserEmail> |
getUserEmail(String accountId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get user email
Returns a user's email address.
|
io.reactivex.Single<UnrestrictedUserEmail> |
getUserEmailBulk(List<String> accountId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get user email bulk
Returns a user's email address.
|
io.reactivex.Single<List<GroupName>> |
getUserGroups(String accountId,
Optional<String> username,
Optional<String> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get user groups
Returns the groups to which a user belongs.
|
io.reactivex.Completable |
removeUser(String accountId,
Optional<String> username,
Optional<String> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete user
Deletes a user.
|
io.reactivex.Completable |
resetUserColumns(Optional<String> accountId,
Optional<String> username,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Reset user default columns
Resets the default [ issue table columns](https://confluence.atlassian.com/x/XYdKLg) for the user to the system default.
|
io.reactivex.Single<Object> |
setUserColumns(Optional<String> accountId,
Optional<List<String>> requestBody,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set user default columns
Sets the default [ issue table columns](https://confluence.atlassian.com/x/XYdKLg) for the user.
|
public io.reactivex.Single<PageBeanUser> bulkGetUsers(List<String> accountId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<List<String>> username, Optional<List<String>> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of a user. To specify multiple users, pass multiple `accountId` parameters. For example, `accountId=5b10a2844c20165700ede21g&accountId=5b10ac8d82e05b22cc7d4ef5`. (required)startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0l)maxResults - The maximum number of items to return per page. (optional, default to 10)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional, default to new ArrayList<>())key - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional, default to new ArrayList<>())restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<List<UserMigrationBean>> bulkGetUsersMigration(Optional<Long> startAt, Optional<Integer> maxResults, Optional<List<String>> username, Optional<List<String>> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0l)maxResults - The maximum number of items to return per page. (optional, default to 10)username - Username of a user. To specify multiple users, pass multiple copies of this parameter. For example, `username=fred&username=barney`. Required if `key` isn't provided. Cannot be provided if `key` is present. (optional, default to new ArrayList<>())key - Key of a user. To specify multiple users, pass multiple copies of this parameter. For example, `key=fred&key=barney`. Required if `username` isn't provided. Cannot be provided if `username` is present. (optional, default to new ArrayList<>())restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<User> createUser(UserWriteBean requestBody, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
requestBody - Details about the user to be created. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<List<User>> getAllUsers(Optional<Integer> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
startAt - The index of the first item to return. (optional, default to 0)maxResults - The maximum number of items to return. (optional, default to 50)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<List<User>> getAllUsersDefault(Optional<Integer> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
startAt - The index of the first item to return. (optional, default to 0)maxResults - The maximum number of items to return. (optional, default to 50)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<User> getUser(Optional<String> accountId, Optional<String> username, Optional<String> key, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required. (optional)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide) for details. (optional)key - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide) for details. (optional)expand - Use [expand](#expansion) to include additional information about users in the response. This parameter accepts a comma-separated list. Expand options include: * `groups` includes all groups and nested groups to which the user belongs. * `applicationRoles` includes details of all the applications to which the user has access. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<List<ColumnItem>> getUserDefaultColumns(Optional<String> accountId, Optional<String> username, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. (optional)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<UnrestrictedUserEmail> getUserEmail(String accountId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, `5b10ac8d82e05b22cc7d4ef5`. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<UnrestrictedUserEmail> getUserEmailBulk(List<String> accountId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account IDs of the users for which emails are required. An `accountId` is an identifier that uniquely identifies the user across all Atlassian products. For example, `5b10ac8d82e05b22cc7d4ef5`. Note, this should be treated as an opaque identifier (that is, do not assume any structure in the value). (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<List<GroupName>> getUserGroups(String accountId, Optional<String> username, Optional<String> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. (required)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)key - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable removeUser(String accountId, Optional<String> username, Optional<String> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. (required)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)key - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable resetUserColumns(Optional<String> accountId, Optional<String> username, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. (optional)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> setUserColumns(Optional<String> accountId, Optional<List<String>> requestBody, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. (optional)requestBody - The ID of a column to set. To set multiple columns, send multiple `columns` parameters. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.