ActiveDirectoryAliases.

FindByOrganizationUnit(ICakeContext, string, UserSettings) Method

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.