updateUser
inline suspend fun DirectoryServiceDataClient.updateUser(crossinline block: UpdateUserRequest.Builder.() -> Unit): UpdateUserResponse
Updates user information.
Samples
import aws.sdk.kotlin.services.directoryservicedata.model.AttributeValue
import aws.sdk.kotlin.services.directoryservicedata.model.UpdateType
fun main() {
//sampleStart
// The following command
val resp = directoryServiceDataClient.updateUser {
clientToken = "550e8400-e29b-41d4-a716-446655440000"
directoryId = "d-12233abcde"
emailAddress = "twhitlock@examplecorp.com"
givenName = "Terry"
otherAttributes = mapOf<String, AttributeValue>(
"telephoneNumber" to AttributeValue.S("212-555-1111"),
"homePhone" to AttributeValue.S("333-333-3333"),
"physicalDeliveryOfficeName" to AttributeValue.S("Example Company"),
"streetAddress" to AttributeValue.S("123 Any Street"),
"postalCode" to AttributeValue.S("54321"),
"st" to AttributeValue.S("WA"),
"co" to AttributeValue.S("US")
)
samAccountName = "twhitlock"
surname = "Whitlock"
updateType = UpdateType.fromValue("ADD")
}
//sampleEnd
}