added getUserById and getGroupById methods