Package com.okta.sdk.resource.api
Class UserTypeApi
java.lang.Object
com.okta.sdk.resource.api.UserTypeApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class UserTypeApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUserType(UserType userType) Create a user type Creates a new user type.createUserType(UserType userType, Map<String, String> additionalHeaders) Create a user type Creates a new user type.voiddeleteUserType(String typeId) Delete a user type Deletes a user type permanently.voiddeleteUserType(String typeId, Map<String, String> additionalHeaders) Delete a user type Deletes a user type permanently.protected static com.fasterxml.jackson.databind.ObjectMappergetUserType(String typeId) Retrieve a user type Retrieves a user type by ID.getUserType(String typeId, Map<String, String> additionalHeaders) Retrieve a user type Retrieves a user type by ID.List all user types Lists all user types in your orglistUserTypes(Map<String, String> additionalHeaders) List all user types Lists all user types in your orgList all user types (Paginated) Lists all user types in your org This method returns a lazy, paginated iterable that automatically handles pagination.listUserTypesPaged(Map<String, String> additionalHeaders) List all user types (Paginated with additional headers) Lists all user types in your org This method returns a lazy, paginated iterable that automatically handles pagination.replaceUserType(String typeId, UserTypePutRequest userType) Replace a user type Replaces an existing user type.replaceUserType(String typeId, UserTypePutRequest userType, Map<String, String> additionalHeaders) Replace a user type Replaces an existing user type.voidsetApiClient(ApiClient apiClient) updateUserType(String typeId, UserTypePostRequest userType) Update a user type Updates an existing user type.updateUserType(String typeId, UserTypePostRequest userType, Map<String, String> additionalHeaders) Update a user type Updates an existing user type.
-
Constructor Details
-
UserTypeApi
public UserTypeApi() -
UserTypeApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createUserType
Create a user type Creates a new user type. Okta automatically creates a `default` user type for your org. You may add up to nine additional user types. > **Note**: New user types are based on the current default schema template. Modifications to this schema do not automatically propagate to previously created user types.- Parameters:
userType- (required)- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
createUserType
public UserType createUserType(UserType userType, Map<String, String> additionalHeaders) throws ApiExceptionCreate a user type Creates a new user type. Okta automatically creates a `default` user type for your org. You may add up to nine additional user types. > **Note**: New user types are based on the current default schema template. Modifications to this schema do not automatically propagate to previously created user types.- Parameters:
userType- (required)additionalHeaders- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
deleteUserType
Delete a user type Deletes a user type permanently. > **Note**: You can't delete the default user type or a user type that is currently assigned to users.- Parameters:
typeId- (required)- Throws:
ApiException- if fails to make API call
-
deleteUserType
Delete a user type Deletes a user type permanently. > **Note**: You can't delete the default user type or a user type that is currently assigned to users.- Parameters:
typeId- (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getUserType
Retrieve a user type Retrieves a user type by ID. Use `default` to fetch the default user type.- Parameters:
typeId- (required)- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
getUserType
public UserType getUserType(String typeId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a user type Retrieves a user type by ID. Use `default` to fetch the default user type.- Parameters:
typeId- (required)additionalHeaders- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
listUserTypes
List all user types Lists all user types in your org- Returns:
- List<UserType>
- Throws:
ApiException- if fails to make API call
-
listUserTypes
List all user types Lists all user types in your org- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- List<UserType>
- Throws:
ApiException- if fails to make API call
-
listUserTypesPaged
List all user types (Paginated) Lists all user types in your org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Returns:
- Iterable<UserType> lazy iterable over all pages
-
listUserTypesPaged
List all user types (Paginated with additional headers) Lists all user types in your org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
additionalHeaders- additional headers for this call- Returns:
- Iterable<UserType> lazy iterable over all pages
-
replaceUserType
Replace a user type Replaces an existing user type. This operation is a full update. > **Note**: The `name` of an existing user type can't be changed, but must be part of the request body. You can only replace the `displayName` and `description` elements.- Parameters:
typeId- (required)userType- (optional)- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
replaceUserType
public UserType replaceUserType(String typeId, UserTypePutRequest userType, Map<String, String> additionalHeaders) throws ApiExceptionReplace a user type Replaces an existing user type. This operation is a full update. > **Note**: The `name` of an existing user type can't be changed, but must be part of the request body. You can only replace the `displayName` and `description` elements.- Parameters:
typeId- (required)userType- (optional)additionalHeaders- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
updateUserType
Update a user type Updates an existing user type. This operation is a partial update. > **Note**: You can only update the `displayName` and `description` elements. The `name` of an existing user type can't be changed.- Parameters:
typeId- (required)userType- (required)- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
updateUserType
public UserType updateUserType(String typeId, UserTypePostRequest userType, Map<String, String> additionalHeaders) throws ApiExceptionUpdate a user type Updates an existing user type. This operation is a partial update. > **Note**: You can only update the `displayName` and `description` elements. The `name` of an existing user type can't be changed.- Parameters:
typeId- (required)userType- (required)additionalHeaders- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-