ActiveDirectoryAliases.

UpdateOrganizationUnit(ICakeContext, string, string, string, UserSettings) Method

Summary

Updates a user's oraganization unit, given the specified properties.

Syntax

public static void UpdateOrganizationUnit(this ICakeContext context, string propertyName, string propertyValue, string organizationalUnit, UserSettings settings)

Examples

UpdateOrganizationUnit("employeeId", "1234", "test", new UserSettings { 
    LoginName = "domainAdmin", 
    Password = "adminPassword", 
    DomainName = "Cake.net" });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
propertyName string The name of the property to search by.
propertyValue string The value of the property to search using.
organizationalUnit string The new organizational unit.
settings UserSettings The user attribute settings.

Return Value

Type Description
void