question

DanielCampos-8778 avatar image
0 Votes"
DanielCampos-8778 asked TimonYang-MSFT commented

directoryEntry property list

I'm programming in ActiveDirectory and I need the DirectoryEntry property list with their descriptions.
I found some fields, but I would like more composed to fill, type account options, password expiration etc.

Below is a text of the code I'm doing

             obDominio = new DirectoryEntry(nomeDominio);
             DirectoryEntries entrada = obDominio.Children;
             DirectoryEntry dados = entrada.Add("CN=" + displayName + "," + cbOus.Text, "User");
             dados.Properties["samAccountName"].Add(accountName); 
             dados.Properties["givenName"].Add(givenName);
             dados.Properties["sn"].Add(surName);              
             dados.Properties["displayName"].Add(displayName);
             dados.CommitChanges();

In this case, I need field references to put in "dados.Properties["?"]"


dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DanielCampos-8778
Microsoft is an English forum. Many members here may not understand the text you use. Please convert it to English and modify your question so that more members can participate.

1 Vote 1 ·

1 Answer

TimonYang-MSFT avatar image
0 Votes"
TimonYang-MSFT answered TimonYang-MSFT commented

Sorry for the late reply. You need to post a comment after you modify it to let the platform send an email to remind people who have followed this thread to know,I forgot to remind you of this.

Please read this document, is this what you need?

All Attributes


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

would like some data synthesis.Properties["..."]

0 Votes 0 ·

No document shows such a list, I am afraid the link above is the only option.
All properties should have a corresponding option in the link, such as:
givenName => Given-Name
samAccountName => SAM-Account-Name
Since I don't know which properties you need, I am afraid you need to find them yourself.

1 Vote 1 ·