You are here

disableAccount

diableAccount(userName) disables an enabled account. It can be invoked only by an Administrator authority.
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");
    }