title: Check if user belongs to an AD group .net core
body: <p>I have an app where on login I want to check if the user is a part of a particular AD group or not. If yes then continue with the application, if not then show error: "I do have the LDAP connection address for the AD".</p>
  
  <p>I am not sure how can we do this .NET core as there are not any examples to do so.</p>