title: Check whether current user is a member of an active directory group
body: <p>I need to check whether current user is a member of an active directory group. I started with getting the current user as below. Now I want to know how to check this CurrentUser is in active directory group "CustomGroup"</p>
  
  <pre><code>string CurrentUser = WindowsIdentity.GetCurrent().Name;
  </code></pre>