I am aware that similar questions have been asked around here but none of them answers the part of AD-Groups that are used inside of SP-Groups.
I have several SP-Groups in my teamsite. I follow best practices and use existing Active Directory groups that are nested in the mentioned SP-Groups.
Now I need to check the group membership of the current user via REST. But everything I have tried only works with users that are direct members of a SP-Group.
I also tried several other REST endpoints (sitegroups, siteusers etc.) but the response is always empty if the user performing it is only a member of an AD-Group that is nested inside the SP-Group.
So my question is if this is possible after all using the REST API? If not, would this be possible using CSOM?