I wrote an event system module which needs to find out if the current user has access to a certain folder. It does this by examining the GroupMemberships of the user and comparing those to the ACE (AccessControlEntry) of the folder.
It works fine in dev, where we have LDAP users which we manually assign to a group in Tridion. However, in the other environments here, we use group sync to manage the memberships. In this case, the user is not a member of the group at all, so my logic doesn't work.
I'm guessing the only way out of this is to retrieve a list of users of a directory service group. How can I do that?
I've seen this answer: How do I obtain a list of the members of a Tridion group which is mapped to an Active directory group using Core Services?. But that uses Core Service, and I need to do this from the event system, so with Tom.NET. There doesn't seem to be an equivalent of GetListDirectoryServiceGroupMembers in Tom.NET.