API:User group membership/Sample code 1