added function to get user owned groups