RemoveAccess Method

This method removes a user’s access to a Content Deployment project.

Syntax

ReplicationProject.RemoveAccess(User)

Parameters

User

The user or group for whom access to the project is removed.

Remarks

You must have Site Server Publishing administrator privileges on the server to call this method.

If a user is in a group that has access to the project, the user will continue to have access to the project.

Example

The following example removes user Steveb from access to the Project1 project.

Option Explicit 
On Error Resume Next 

const OPEN_EXISTING_PROJECT  = 2

dim ReplServer
set ReplServer = CreateObject("Crsapi.ReplicationServer")
ReplServer.Initialize("")
dim ReplProject
set ReplProject = ReplServer.OpenProject("Project1", OPEN_EXISTING_PROJECT)
ReplProject.RemoveAccess("Steveb")

'Release objects
set ReplProject = Nothing
set ReplServer  = Nothing

See Also

CheckAccess, GrantAccess


© 1997-1998 Microsoft Corporation. All rights reserved.