I have a SPUser and I want to get all the user groups in which the SPUser exists. How can i get all the SPGroups containing the SPUser programatically?. Sample codes and useful links would be very helpful. Thanks.
SPUser.Groups returns a collection of SPGroups which the user is a member. Here is the documentation link