Get User Group Collection in Sharepoint 2013

User Group Collection in SharePoint 2013:-

Before to get user group collection in SharePoint I would like to explain about the SharePoint group and permissions. SharePoint group are the collection of resources. Each group has its own permission. Below is code to Read User Group Collection in SharePoint 2013.

[AdSense-A]