Package com.auth0.client.mgmt.filter
Class UsersImportOptions
java.lang.Object
com.auth0.client.mgmt.filter.BaseFilter
com.auth0.client.mgmt.filter.UsersImportOptions
Class used to change the behavior of a Users Imports Job. Related to the
JobsEntity
entity.
This class is not thread-safe.
- See Also:
-
Field Summary
Fields inherited from class com.auth0.client.mgmt.filter.BaseFilter
parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwithExternalId
(String externalId) Sets an optional user-defined string that can be used to correlate multiple jobs.withSendCompletionEmail
(boolean sendCompletionEmail) When set to true, sends a completion email to all tenant owners when the import job is finished.withUpsert
(boolean upsert) When set to false, pre-existing users that match on email address, user ID, or username will fail.Methods inherited from class com.auth0.client.mgmt.filter.BaseFilter
getAsMap
-
Constructor Details
-
UsersImportOptions
public UsersImportOptions()
-
-
Method Details
-
withSendCompletionEmail
When set to true, sends a completion email to all tenant owners when the import job is finished. If you do not want emails sent, you must explicitly set this parameter to false.- Parameters:
sendCompletionEmail
- whether to send a completion email to all tenant owners when the import job is finished. Defaults to true.- Returns:
- this filter instance
-
withExternalId
Sets an optional user-defined string that can be used to correlate multiple jobs.- Parameters:
externalId
- the external ID to use.- Returns:
- this filter instance
-
withUpsert
When set to false, pre-existing users that match on email address, user ID, or username will fail. When set to true, pre-existing users that match on any of these fields will be updated, but only with upsertable attributes. For a list of user profile fields that can be upserted during import, see the following article.https://auth0.com/docs/users/references/user-profile-structure#user-profile-attributes
- Parameters:
upsert
- Whether to update users if they already exist (true) or to ignore them (false). Defaults to false.- Returns:
- this filter instance
-