updateUser
Updates the properties of an existing user in a Wickr network. This operation allows you to modify the user's name, password, security group membership, and invite code settings.
codeValidation, inviteCode, and inviteCodeTtl are restricted to networks under preview only.
Samples
import aws.sdk.kotlin.services.wickr.model.UpdateUserDetails
fun main() {
//sampleStart
// Update user information
val resp = wickrClient.updateUser {
networkId = "12345678"
userId = "12345"
userDetails = UpdateUserDetails {
firstName = "Jonathan"
lastName = "Doe"
username = "john.doe@example.com"
securityGroupIds = listOf<String>(
"BCTY8Qhe",
"DEPT001"
)
}
}
//sampleEnd
}import aws.sdk.kotlin.services.wickr.model.UpdateUserDetails
fun main() {
//sampleStart
// Update user with invite code
val resp = wickrClient.updateUser {
networkId = "12345678"
userId = "12345"
userDetails = UpdateUserDetails {
firstName = "Jane"
lastName = "Smith"
username = "jane.smith@example.com"
inviteCode = "NEWINVITE789"
inviteCodeTtl = 14
codeValidation = true
}
}
//sampleEnd
}