Skip to main content
Home

Search form

Menu

Search form

  • Overview
  • How To videos
  • Getting Started with SkyVault
  • Using SkyVault
  • Customizing
  • Programming
    • Integrating your application with SkyVault
    • Designing your application
    • Programming with CMIS
    • Programming with the repository
    • Programming with SkyVault services
    • Programming with Surf
    • Web Scripts
    • Scripting API
      • Root objects
      • ScriptNode Object API
      • Search API
      • People API
      • Actions API
      • ScriptAction API
      • Logging API
      • Session API
      • Classification API
      • AVM API
      • WCM Web Projects
        • createWebProject
        • getWebProject
        • listWebProjects
        • WebProjects Object API
          • getRoles
          • save
          • deleteWebProject
          • addMembership
          • removeMembership
          • listMembers
          • createSandbox
        • Sandbox Object API
        • WCM Asset Object API
      • Utility methods
    • Services API
  • Copyright
  • Disclaimer
  • You are here

    SkyVault Enterprise 4.1.10 » Programming » SkyVault API Reference » Repository JavaScript API » Scripting API » WCM Web Projects » WebProjects Object API

    removeMembership

    removeMembership(userName) removes the specified user from a web project.

    Parameters

    userName
    A string representing the username of the user to remove from membership of the site.

    Example

        var site = siteService.getSite("swsdp");
    
        if(site){
    
            var authorityName = "joe.user";
    
            site.removeMembership(authorityName);
    
            ...   
        }
          
    Parent topic: WebProjects Object API
    Parent topic: Site object

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