Important Note : This will only work for InfoPath Forms Services, not for InfoPath clients Useful code below to check the membership of Active Directory groups for the current user. For this you need to import the .net library System.DirectoryServices
Read More...