Get Web Groups With Permissions
Get Web Groups With Permissions

The snippet retrieves all the Groups with permissions associated to the SharePoint Web using Managed Client Side Object Model
spknowledge/CSOM-Samples