java.lang.Object | |
↳ | com.atlassian.jira.bc.user.UserService.CreateUserRequest |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
This request contains all the instructions and user details that should be used during user validation and user creation.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Confirm that the provided password matches the confirm password provided.
| |||||||||||
Determine whether the default user directory should be used for the new user.
| |||||||||||
Return the application keys that are used to specify what application access the new user requires.
| |||||||||||
Return the confirmation password that should be compared against the
getPassword() . | |||||||||||
Return the directory id (representing the user directory), that the new user should be created in.
| |||||||||||
Return the display name (also known as full name) for the new user.
| |||||||||||
Return the email address for the new user.
| |||||||||||
Return the logged in user that would be performing the user creation.
| |||||||||||
Return the password for the new user.
| |||||||||||
Return the user name that is used to identify the new user.
| |||||||||||
Specify what user directory should be used for new user.
| |||||||||||
Specify that the user password is required.
| |||||||||||
Indicate that the permission check should not be performed on the logged in user to determine whether the
logged in user has permission to create the new user.
| |||||||||||
Determine whether the new user requires default application access.
| |||||||||||
Determine whether the user password is required.
| |||||||||||
Specify whether a notification should be sent when the new user has successfully been created.
| |||||||||||
Specify that a user signup event should be sent after user creation.
| |||||||||||
Determine whether the confirmation password should be validation or whether the confirmation password has
been set.
| |||||||||||
Determine whether a notification should be sent after user creation.
| |||||||||||
Determine whether a signup event should be sent after user has been created.
| |||||||||||
Specify that all validations should be skipped.
| |||||||||||
Specify the applications that this user required access to.
| |||||||||||
This method is deprecated.
Since v7.0.
| |||||||||||
Indicate that no application access is required for the new user.
| |||||||||||
Create a new user creation request as the provided user for the specified user details.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Confirm that the provided password matches the confirm password provided.
confirmPassword | the confirm password that should match the provided password. |
---|
Determine whether the default user directory should be used for the new user.
Return the application keys that are used to specify what application access the new user requires.
Return the confirmation password that should be compared against the getPassword()
. This is
typically set by confirmPassword(String)
to indicate that the confirm password should be validated
against the getPassword()
.
getPassword()
.
Return the directory id (representing the user directory), that the new user should be created in. This is
typically left unset null
indicating default.
Return the display name (also known as full name) for the new user.
Return the email address for the new user.
Return the logged in user that would be performing the user creation.
Return the password for the new user.
Return the user name that is used to identify the new user.
Specify what user directory should be used for new user.
directoryId | The directory which the new user is intended to be created in. null indicates that
the default directory should be used.
|
---|
Specify that the user password is required.
Indicate that the permission check should not be performed on the logged in user to determine whether the logged in user has permission to create the new user.
performPermissionCheck | true if the permission check should be performed else false to skip the permission check. |
---|
Determine whether the new user requires default application access. Default application access is the configuration that indicates what applications a new user should be added to.
Determine whether the user password is required.
Specify whether a notification should be sent when the new user has successfully been created.
sendNotification | true if notification should be sent after a new user has successfully been created. false if no notification should be sent. |
---|
Specify that a user signup event should be sent after user creation. Typically when the new user is being created during signup.
Determine whether the confirmation password should be validation or whether the confirmation password has been set.
confirmPassword(String)
should be compared against the getPassword()
.
Determine whether a notification should be sent after user creation.
Determine whether a signup event should be sent after user has been created. This is typically true when the user is being created via signup.
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Specify that all validations should be skipped. This should only be used when it does not matter that user gets created or added.
Specify the applications that this user required access to.
applicationKeys | applications that user should be granted access to, an empty Set indicates that the user does not require access to any applications. |
---|
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
This method is deprecated.
Since v7.0.
This method has been made public only to allow temporary backwards compatibility and will be removed in 7.0.
Set the event type to be dispatch after user creation. This has been added for compatibility reasons please avoid using this.
userEventType | the event type that should be sent after user has been created. |
---|
Indicate that no application access is required for the new user.
Create a new user creation request as the provided user for the specified user details. This request indicates that the new users should be created in the default user directory and have access to the default applications. A Notification would be sent after user creation.
loggedInUser | application user performing the create. If null the user creation is being
performed during setup or signup. |
---|---|
username | The username of the new user. Needs to be lowercase and unique. Required. |
password | The password for the new user. If empty a random password will be generated. |
emailAddress | The email address for the new user. Required. |
displayName | The display name for the new user. Required. |