Added ability to set user memberships