Skip to main content
Home

Search form

Menu

Search form

  • Overview
  • How To videos
  • Getting Started tutorials
  • Using SkyVault
  • Customizing
  • Programming
    • Integrating your application with SkyVault
    • Designing your application
    • Programming with CMIS
    • Programming with SkyVault services
    • Programming with Surf
    • Web Scripts
    • Scripting API
      • Root objects
      • ScriptNode Object API
      • Search API
      • People API
        • createPerson
        • deletePerson
        • createGroup
        • deleteGroup
        • getMembers
        • addAuthority
        • removeAuthority
        • getContainerGroups
        • isAdmin
        • isGuest
        • changePassword
        • setPassword
        • enableAccount
        • disableAccount
        • isAccountEnabled
        • setQuota
        • getPeople
        • getPerson
        • getGroup
        • getCapabilities
        • getImmutableProperties
      • Actions API
      • ScriptAction API
      • Logging API
      • Session API
      • Classification API
      • AVM API
      • WCM Web Projects
      • Utility methods
    • Services API
  • Copyright
  • Disclaimer
  • You are here

    SkyVault Enterprise 4.0.2 » Programming » SkyVault API Reference » Repository JavaScript API » Scripting API » People API

    enableAccount

    enableAccount(userName) enables a disabled account. It can be invoked only by an Administrator authority.

    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");
        }
    
          
    Parent topic: People API

    © 2017 TBS-LLC. All Rights Reserved.    Follow @twitter