I have a SharePoint Add-on for Office 365. It is currently a SharePoint Hosted app and I would like to keep it that way.
My Problem is I am trying to find out if a user is a member of a group either directly or through an AD group. I'm currently querying the user, using the API, for a list of groups they are a member of but this only returns groups that the have been added directly to.
I have seen the workaround on Check users group membership via REST API using AD-Groups in SP-Groups but I don't have control over the SharePoint groups
Do anyone know if it is possible to check if a user is a member of a SharePoint group when they are added via an AD group using the REST API or JSOM?