I\'ve written the below, and it works (based on Check if the user is a member of a list of AD groups), however it takes an incredibly long time to run - I\'m as