AnsweredAssumed Answered

Enable/Disable user programmatically

Question asked by gommo on Dec 2, 2013
Latest reply on Dec 4, 2013 by gommo
I'm creating users via a custom UserRegistry returning NodeDescription with properties.
e.g.
PropertyMap properties = node.getProperties();

properties.put(ContentModel.PROP_USERNAME, user.getName());
properties.put(ContentModel.PROP_FIRSTNAME, user.getFirstName());
properties.put(ContentModel.PROP_LASTNAME, user.getLastName());
properties.put(ContentModel.PROP_EMAIL, user.getEmailAddress());

However, it appears some users are coming up as disabled, particularly when viewed via share.

What property or service methods are available to set the user to enabled.
I tried these two, PROP_ENABLED & PROP_MODEL_ACTIVE

But they didn't seem to affect share.

Thanks

Outcomes