Added createUser and createGroup functions