disableUser

Deactivates an active user account. For information about how to enable an inactive user account, see ResetUserPassword in the Directory Service API Reference.

Samples


fun main() { 
   //sampleStart 
   // The following command disables the account for twhitlock.
val resp = directoryServiceDataClient.disableUser {
    clientToken = "550e8400-e29b-41d4-a716-446655440000"
    directoryId = "d-12233abcde"
    samAccountName = "twhitlock"
} 
   //sampleEnd
}