CReplicationProject.RemoveAccess Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Removes the specified user's or group's rights to the Commerce Server Staging (CSS) project.

void RemoveAccess(string userName)

Parameters

  • userName
    The name of the user or group whose user rights to the CSS project are to be removed.

Remarks

You must have CSS administrator rights to call this method.

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

The CReplicationProject.RemoveAccess method corresponds to the COM method named ReplicationProject.RemoveAccess.

Example

The following example removes CSS user rights for the user User1 on the project named Project1.

CReplicationServer replicationServer = new CReplicationServer();
  replicationServer.Initialize("");

  CReplicationProject replicationProject;
  replicationProject = (CReplicationProject)replicationServer.OpenProject("Project1", CSS_PROJECT_CREATION.OPEN_EXISTING_PROJECT);
  replicationProject.RemoveAccess("User1"); 

See Also

Other Resources

Projects

How to Retrieve Project Information

Configuring Security for Commerce Server Staging

CReplicationProject.CheckAccess Method

CReplicationProject.GrantAccess Method

CReplicationProject Class