public class UsersManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UsersManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
UsersManager() |
protected |
UsersManager(UsersManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
UserFull |
createUser(CreateUserRequestBody requestBody)
Creates a new managed user in an enterprise.
|
UserFull |
createUser(CreateUserRequestBody requestBody,
CreateUserHeaders headers)
Creates a new managed user in an enterprise.
|
UserFull |
createUser(CreateUserRequestBody requestBody,
CreateUserQueryParams queryParams)
Creates a new managed user in an enterprise.
|
UserFull |
createUser(CreateUserRequestBody requestBody,
CreateUserQueryParams queryParams,
CreateUserHeaders headers)
Creates a new managed user in an enterprise.
|
void |
deleteUserById(String userId)
Deletes a user.
|
void |
deleteUserById(String userId,
DeleteUserByIdHeaders headers)
Deletes a user.
|
void |
deleteUserById(String userId,
DeleteUserByIdQueryParams queryParams)
Deletes a user.
|
void |
deleteUserById(String userId,
DeleteUserByIdQueryParams queryParams,
DeleteUserByIdHeaders headers)
Deletes a user.
|
Authentication |
getAuth() |
NetworkSession |
getNetworkSession() |
UserFull |
getUserById(String userId)
Retrieves information about a user in the enterprise.
|
UserFull |
getUserById(String userId,
GetUserByIdHeaders headers)
Retrieves information about a user in the enterprise.
|
UserFull |
getUserById(String userId,
GetUserByIdQueryParams queryParams)
Retrieves information about a user in the enterprise.
|
UserFull |
getUserById(String userId,
GetUserByIdQueryParams queryParams,
GetUserByIdHeaders headers)
Retrieves information about a user in the enterprise.
|
UserFull |
getUserMe()
Retrieves information about the user who is currently authenticated.
|
UserFull |
getUserMe(GetUserMeHeaders headers)
Retrieves information about the user who is currently authenticated.
|
UserFull |
getUserMe(GetUserMeQueryParams queryParams)
Retrieves information about the user who is currently authenticated.
|
UserFull |
getUserMe(GetUserMeQueryParams queryParams,
GetUserMeHeaders headers)
Retrieves information about the user who is currently authenticated.
|
Users |
getUsers()
Returns a list of all users for the Enterprise along with their `user_id`, `public_name`, and
`login`.
|
Users |
getUsers(GetUsersHeaders headers)
Returns a list of all users for the Enterprise along with their `user_id`, `public_name`, and
`login`.
|
Users |
getUsers(GetUsersQueryParams queryParams)
Returns a list of all users for the Enterprise along with their `user_id`, `public_name`, and
`login`.
|
Users |
getUsers(GetUsersQueryParams queryParams,
GetUsersHeaders headers)
Returns a list of all users for the Enterprise along with their `user_id`, `public_name`, and
`login`.
|
UserFull |
updateUserById(String userId)
Updates a managed or app user in an enterprise.
|
UserFull |
updateUserById(String userId,
UpdateUserByIdHeaders headers)
Updates a managed or app user in an enterprise.
|
UserFull |
updateUserById(String userId,
UpdateUserByIdQueryParams queryParams)
Updates a managed or app user in an enterprise.
|
UserFull |
updateUserById(String userId,
UpdateUserByIdQueryParams queryParams,
UpdateUserByIdHeaders headers)
Updates a managed or app user in an enterprise.
|
UserFull |
updateUserById(String userId,
UpdateUserByIdRequestBody requestBody)
Updates a managed or app user in an enterprise.
|
UserFull |
updateUserById(String userId,
UpdateUserByIdRequestBody requestBody,
UpdateUserByIdHeaders headers)
Updates a managed or app user in an enterprise.
|
UserFull |
updateUserById(String userId,
UpdateUserByIdRequestBody requestBody,
UpdateUserByIdQueryParams queryParams)
Updates a managed or app user in an enterprise.
|
UserFull |
updateUserById(String userId,
UpdateUserByIdRequestBody requestBody,
UpdateUserByIdQueryParams queryParams,
UpdateUserByIdHeaders headers)
Updates a managed or app user in an enterprise.
|
public Authentication auth
public NetworkSession networkSession
public UsersManager()
protected UsersManager(UsersManager.Builder builder)
public Users getUsers()
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
public Users getUsers(GetUsersQueryParams queryParams)
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
queryParams - Query parameters of getUsers methodpublic Users getUsers(GetUsersHeaders headers)
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
headers - Headers of getUsers methodpublic Users getUsers(GetUsersQueryParams queryParams, GetUsersHeaders headers)
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
queryParams - Query parameters of getUsers methodheaders - Headers of getUsers methodpublic UserFull createUser(CreateUserRequestBody requestBody)
requestBody - Request body of createUser methodpublic UserFull createUser(CreateUserRequestBody requestBody, CreateUserQueryParams queryParams)
requestBody - Request body of createUser methodqueryParams - Query parameters of createUser methodpublic UserFull createUser(CreateUserRequestBody requestBody, CreateUserHeaders headers)
requestBody - Request body of createUser methodheaders - Headers of createUser methodpublic UserFull createUser(CreateUserRequestBody requestBody, CreateUserQueryParams queryParams, CreateUserHeaders headers)
requestBody - Request body of createUser methodqueryParams - Query parameters of createUser methodheaders - Headers of createUser methodpublic UserFull getUserMe()
In the case of a client-side authenticated OAuth 2.0 application this will be the user who authorized the app.
In the case of a JWT, server-side authenticated application this will be the service account that belongs to the application by default.
Use the `As-User` header to change who this API call is made on behalf of.
public UserFull getUserMe(GetUserMeQueryParams queryParams)
In the case of a client-side authenticated OAuth 2.0 application this will be the user who authorized the app.
In the case of a JWT, server-side authenticated application this will be the service account that belongs to the application by default.
Use the `As-User` header to change who this API call is made on behalf of.
queryParams - Query parameters of getUserMe methodpublic UserFull getUserMe(GetUserMeHeaders headers)
In the case of a client-side authenticated OAuth 2.0 application this will be the user who authorized the app.
In the case of a JWT, server-side authenticated application this will be the service account that belongs to the application by default.
Use the `As-User` header to change who this API call is made on behalf of.
headers - Headers of getUserMe methodpublic UserFull getUserMe(GetUserMeQueryParams queryParams, GetUserMeHeaders headers)
In the case of a client-side authenticated OAuth 2.0 application this will be the user who authorized the app.
In the case of a JWT, server-side authenticated application this will be the service account that belongs to the application by default.
Use the `As-User` header to change who this API call is made on behalf of.
queryParams - Query parameters of getUserMe methodheaders - Headers of getUserMe methodpublic UserFull getUserById(String userId)
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
This endpoint also returns a limited set of information for external users who are collaborated on content owned by the enterprise for authenticated users with the right scopes. In this case, disallowed fields will return null instead.
userId - The ID of the user. Example: "12345"public UserFull getUserById(String userId, GetUserByIdQueryParams queryParams)
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
This endpoint also returns a limited set of information for external users who are collaborated on content owned by the enterprise for authenticated users with the right scopes. In this case, disallowed fields will return null instead.
userId - The ID of the user. Example: "12345"queryParams - Query parameters of getUserById methodpublic UserFull getUserById(String userId, GetUserByIdHeaders headers)
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
This endpoint also returns a limited set of information for external users who are collaborated on content owned by the enterprise for authenticated users with the right scopes. In this case, disallowed fields will return null instead.
userId - The ID of the user. Example: "12345"headers - Headers of getUserById methodpublic UserFull getUserById(String userId, GetUserByIdQueryParams queryParams, GetUserByIdHeaders headers)
The application and the authenticated user need to have the permission to look up users in the entire enterprise.
This endpoint also returns a limited set of information for external users who are collaborated on content owned by the enterprise for authenticated users with the right scopes. In this case, disallowed fields will return null instead.
userId - The ID of the user. Example: "12345"queryParams - Query parameters of getUserById methodheaders - Headers of getUserById methodpublic UserFull updateUserById(String userId)
userId - The ID of the user. Example: "12345"public UserFull updateUserById(String userId, UpdateUserByIdRequestBody requestBody)
userId - The ID of the user. Example: "12345"requestBody - Request body of updateUserById methodpublic UserFull updateUserById(String userId, UpdateUserByIdQueryParams queryParams)
userId - The ID of the user. Example: "12345"queryParams - Query parameters of updateUserById methodpublic UserFull updateUserById(String userId, UpdateUserByIdRequestBody requestBody, UpdateUserByIdQueryParams queryParams)
userId - The ID of the user. Example: "12345"requestBody - Request body of updateUserById methodqueryParams - Query parameters of updateUserById methodpublic UserFull updateUserById(String userId, UpdateUserByIdHeaders headers)
userId - The ID of the user. Example: "12345"headers - Headers of updateUserById methodpublic UserFull updateUserById(String userId, UpdateUserByIdRequestBody requestBody, UpdateUserByIdHeaders headers)
userId - The ID of the user. Example: "12345"requestBody - Request body of updateUserById methodheaders - Headers of updateUserById methodpublic UserFull updateUserById(String userId, UpdateUserByIdQueryParams queryParams, UpdateUserByIdHeaders headers)
userId - The ID of the user. Example: "12345"queryParams - Query parameters of updateUserById methodheaders - Headers of updateUserById methodpublic UserFull updateUserById(String userId, UpdateUserByIdRequestBody requestBody, UpdateUserByIdQueryParams queryParams, UpdateUserByIdHeaders headers)
userId - The ID of the user. Example: "12345"requestBody - Request body of updateUserById methodqueryParams - Query parameters of updateUserById methodheaders - Headers of updateUserById methodpublic void deleteUserById(String userId)
userId - The ID of the user. Example: "12345"public void deleteUserById(String userId, DeleteUserByIdQueryParams queryParams)
userId - The ID of the user. Example: "12345"queryParams - Query parameters of deleteUserById methodpublic void deleteUserById(String userId, DeleteUserByIdHeaders headers)
userId - The ID of the user. Example: "12345"headers - Headers of deleteUserById methodpublic void deleteUserById(String userId, DeleteUserByIdQueryParams queryParams, DeleteUserByIdHeaders headers)
userId - The ID of the user. Example: "12345"queryParams - Query parameters of deleteUserById methodheaders - Headers of deleteUserById methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()