Active Directory Attribute List Using c# -


How do I get a list of Active Directory user attributes (not special users' special properties) egcn, mail etc. C #

If you are .NET 3.5 and above, then you have to check the class system. DirectoryServices.ActiveDirectory For this, you need to look more like classes.

You can catch using the current Eddie schema:

  ActiveDirectorySchema currSchema = ActiveDirectorySchema.GetCurrentSchema ();   

When you have a current schema, you can inspect different class definitions, eg:

  ActiveDirectorySchemaClass userSchema = currSchema.FindClass (" person");   

Once you get that object, you can inspect its properties and calculate them:

  • Mandatory Properties < / Li>
  • Get insights into the Advertising Schema

    and so on.

Comments