Fetch current user memberships in SharePoint Security groups.
There are few security groups in my SharePoint site .AD groups are added to the security groups. Is there any way using REST API /JavaScript to find out that the current user belongs to which all security groups .There is a check box present in a customised form which is accessible to specific security group members. So I want to extract the details of the current user.