protected boolean createUser(final Principal principal, final Credential credential) {
        val createUserRequest = oktaClient.instantiate(CreateUserRequest.class);
        val initialUserProfile = oktaClient.instantiate(UserProfile.class);
        initialUserProfile.setLogin(principal.getId());
        val userProfile = mapPrincipalToUserProfile(initialUserProfile, principal, credential);
        createUserRequest.setProfile(userProfile);
        val createdUser = oktaClient.createUser(createUserRequest, true, true, UserNextLogin.SDK_UNKNOWN);
        LOGGER.debug("Created Okta user [{}]", createdUser);
        return createdUser != null;
    }
This is {@link OktaPrincipalProvisioner}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-okta-authentication/src/main/java/org/apereo/cas/okta/OktaPrincipalProvisioner.java