if that user already exists
if the group or user does not exist or if the user already exists in the group
the group to remove
if the group is not empty
Removes the user including any attributes like group membership.
Removes the user including any attributes like group membership.
if the user does not exist
if the group or user does not exist or if the user does not exist in the group
if the user doesn't exist or if the new password defies any policy
Authenticates a user using the given credentials.
Authenticates a user using the given credentials.
If this method returns normally, the authentication was successful.
the user object
if authentication fails
Sets the group membership for the given user.
Sets the group membership for the given user.
Any pre-existing group membership not included in the supplied groups is revoked.