ActiveDirectoryAliases.

UpdateUser(ICakeContext, string, string, UserSettings) Method

Summary

Updates a user account given the specified properties.

Syntax

public static void UpdateUser(this ICakeContext context, string attributeName, string attributeValue, UserSettings settings)

Examples

UpdateUser("employeeId", "1234", new UserSettings { 
    LoginName = "domainAdmin", 
    Password = "adminPassword", 
    DomainName = "Cake.net",
    Email = "[email protected]" });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
attributeName string The name of the attribute to search by.
attributeValue string The value of the attribute to search using.
settings UserSettings The user attribute settings.

Return Value

Type Description
void