protected boolean updateUser(final User user, final Principal principal) {
        val userProfile = mapPrincipalToUserProfile(user.getProfile(), principal, null);
        user.setProfile(userProfile);
        val updatedUser = oktaClient.partialUpdateUser(user, user.getId(), true);
        LOGGER.debug("Updated Okta user [{}]", updatedUser);
        return updatedUser != 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