I am running SharePoint Foundation 2010. I have a claims based site setup to use a trusted token provider. I am passing it a set of claims that determine the user's group. They look similar to this: http://schemas.xmlsoap.org/claims/Group. On my SharePoint end I have created some SharePoint groups and users to these SharePoint groups through the claims groups. The permissions are working great and I can manipulate them however.
The issue is I would like to get these users' SharePoint groups from code (preferably jQuery) I have attempted to use the SPServices but haven't had much luck. For some reason I can only obtain the user's group if they have been directly added (not added through their group) I followed this tutorial http://azzu-sheikh.blogspot.com/2013/05/jquery-spservices-to-get-current-user.html and it works well if the user has been directly added.
Anybody have any ideas?