There is a new application for creating users that we just provided to our users. However, these users need the ability to create users through the application, even if they themselves do not have the right to create users.
In C #, how do you personalize another user to have this functionality. This is the main application using System.DirectoryServices
.
Code snippet:
DirectoryEntry dEntry = new DirectoryEntry("LDAP://OU="); DirectorySearcher dSearcher = new DirectorySearcher(dEntry); //filter just user objects dSearcher.SearchScope = SearchScope.Subtree; dSearcher.Filter = "(&(objectClass=user)(mail=" + excel_Holding_Table.Rows[i]["EmailAddress"].ToString() + "))"; dSearcher.PageSize = 1000; sResults = dSearcher.FindAll();
user222427
source share