You are here

disableAccount

disableAccount(userName) disables an enabled account. It can be invoked with Administrator authority only.
Note: This procedure works for alfrescoNtlm users only.

Parameters

userName
A string representing the user name of the user whose account is to be disabled.

Example

The following code snippet toggles the user account status:

if(people.isAccountEnabled("Joe")){
    people.disableAccount("Joe");        
}
else{
    people.enableAccount("Joe");
}

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.