Share via


RemoveDwsUser Method

The RemoveDwsUser method of the Document Workspace service removes the specified user from the list of users for the current Document Workspace site.

Parameters

id   The ID of the user to be removed from the list of users.

Return Value

String Returns an empty <Result/> when successful.

Error Values

The following table shows errors that may be returned by the RemoveDwsUser method.

Error Code Description
DwsError.NoAccess (3) The user does not have sufficient rights.

Remarks

The RemoveDwsUser method removes the specified user from the current Document Workspace site by specifying the user ID. However, the methods of the Document Workspace service do not provide access to ID values for users of the Document Workspace site. Use the GetUserInfo method of the Microsoft Windows SharePoint Services Users and Groups Web service to retrieve user ID values.

Example

The following code example shows how to retrieve the user ID by passing the account name of the user to the GetUserInfo method of the Users and Groups Web service and then how to remove the user from the current Document Workspace site by passing the user ID to the RemoveDwsUser method. For more information about the full text of the helper functions used in this example, see the CanCreateDwsUrl method.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/_vti_bin/Dws.asmx