Get the site groups for the current site. it works fine and get all the groups.
passing the id received from the results above which is MembershipGroupId=562
but this gives me error
here is the Group ID that is passed to retrieve the permission for the group.
/_api/Web/RoleAssignments/GetByPrincipalId(21)/RoleDefinitionBindings
Is group member id is the principal ID or we need some other method to find it.