I can't find any documentation or a way to find if a user belongs to an AD group with Javascript neither with the REST API or with the client model JSOM.
I have a page in a Sharepoint site and I want to show/hide a link if the user belongs to an active directory group.
It's Sharepoint 2013 Online in an Office 365 Server so there was a synchronization with the on-premises server
I have tried to use the Rest API _api/web/sitegroups or _api/web/GetUserById(32)/groups
but it just returns the Sharepoint Groups of that user, not the AD groups, is there something I have to do to make for the AD groups appear in the rest api or am I totally wrong, should I use a webservice or something like that?
Any help would be really appreciated