A container of AcUser objects that define AccuRev users.
Elements contain user principal attributes name, ID, and status (active or inactive). In addition, the user's AccuRev group membership list, regular and other user properties from Active Directory, and deactivated (removed) users can be included as well.
- Attention
- User properties require that AccuRev principal names match login names stored on the LDAP server.
Definition at line 497 of file AcUsers.cs.
A container of AcUser objects that define AccuRev users. Elements contain user principal attributes name, ID, and status (active or inactive). Optionally, the user's AccuRev group membership list, regular and other user properties from Active Directory, and deactivated (removed) users can be included as well.
Including group membership initialization (includeGroupsList = true) is slower, so we give the option to exclude it when the list isn't needed. A user's group membership list includes groups from implicit membership, i.e. if user is a member of groupA and groupA is a member of groupB, the user is implicitly a member of groupB.
- Parameters
-
dc | List of DomainElement objects as defined in <prog_name>.exe.config domains section. Used to initialize the user properties default set from Active Directory. |
pc | List of PropElement objects as defined in <prog_name>.exe.config properties section. Used to add and initialize user properties from Active Directory that are outside the regular default set. Note: requires a valid DomainCollection dc parameter. |
includeGroupsList | true to include group membership initialization for each user (slower), false for no initialization (faster). |
includeDeactivated | true to include deactivated (removed) users, otherwise false. |
ADSection adSection = ConfigurationManager.GetSection("activeDir") as ADSection;
_domains = adSection.Domains;
_pc = adSection.Props;
...
toolStripStatusLabel.Text = "Loading users...";
toolStripProgressBar.Maximum = await AcQuery.getUsersCountAsync();
var progress = new Progress<int>(i => toolStripProgressBar.Value = i);
if (await users.initAsync(progress))
{
foreach (AcUser
user in users.OrderBy(n => n))
...
- Attention
- User properties require that AccuRev principal names match login names stored on the LDAP server.
- See also
- initAsync, AcUser.initGroupsListAsync, AcUser.initFromADAsync, default comparer, AcGroups constructor
Definition at line 548 of file AcUsers.cs.