This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.ActiveDirectory.
Summary
Finds all users in an organization unit.
Syntax
public static IList<UserObject> FindByOrganizationUnit(this ICakeContext context, string organizationalUnit, UserSettings settings)
Examples
var users = FindByOrganizationUnit("Cake Users", new UserSettings {
LoginName = "domainAdmin",
Password = "adminPassword",
DomainName = "Cake.net" });
Attributes
| Type |
Description |
| CakeMethodAliasAttribute |
|
| CakeAliasCategoryAttribute |
|
| CakeNamespaceImportAttribute |
|
| CakeNamespaceImportAttribute |
|
Parameters
| Name |
Type |
Description |
| context |
ICakeContext |
The context. |
| organizationalUnit |
string |
Distinguished name of OU. |
| settings |
UserSettings |
The settings. |
Return Value
| Type |
Description |
| IList<UserObject> |
List of UserObjects. |