How to get all shared groups that contain the login user?

I want to display all users in every shared group including the login user himself especially, How can i do?