When creating a new user with the Java SDK, I create the user with no password.
UserBuilder builder = UserBuilder.instance();
builder
.setEmail(user.getEmail())
.setFirstName(user.getFirstName())
.setLastName(user.getLastName())
.setActive(true);
com.okta.sdk.resource.user.User oktaUser = builder.buildAndCreate(okta);
// user created successfully
EDIT
The activation email does not work in Safari. I copied and pasted it into Chrome and it worked. So what is wrong with activation emails in Safari?
Original
This user shows up in the Admin console with a status of Password reset
. The activation email is sent to the newly created account, but the activation link does not work. It always generates a 404 error page in Okta.
This link https://dev-315558.oktapreview.com/welcome/Ehh_pjzcccqVB0aihKIj
does not work.
So what am I missing then? If I .setActive(false)
then the user never gets an activation email.