Removes the specified user from the subscription list of a folder. Optionally removes the user from all sub-folders and documents within the folder.
/srv.asmx/RemoveUserFromFolderSubscribers
/srv.asmx/RemoveUserFromFolderSubscribers?AuthenticationTicket=...&FolderPath=...&UserName=...&IncludeSubObjects=.../srv.asmx/RemoveUserFromFolderSubscribers (form data)http://tempuri.org/RemoveUserFromFolderSubscribers| Parameter | Type | Required | Description |
|---|---|---|---|
AuthenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
FolderPath |
string | Yes | Full path of the folder (e.g., /MyLibrary/Projects) |
UserName |
string | Yes | Username of the user to remove from the subscription list |
IncludeSubObjects |
bool | Yes | When true, also removes the user from all sub-folders and documents within the folder. When false, only removes from the specified folder. |
<root success="true" />
<root success="false" error="[ErrorCode] Error message" />
The caller must have sufficient rights to modify the subscription list of the specified folder (typically requires the AddRemoveSubscription policy right on the domain).
GET /srv.asmx/RemoveUserFromFolderSubscribers?AuthenticationTicket=abc123-def456&FolderPath=/MyLibrary/Projects&UserName=jsmith&IncludeSubObjects=true HTTP/1.1
POST /srv.asmx/RemoveUserFromFolderSubscribers HTTP/1.1
Content-Type: application/x-www-form-urlencoded
AuthenticationTicket=abc123-def456&FolderPath=/MyLibrary/Projects&UserName=jsmith&IncludeSubObjects=true
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/RemoveUserFromFolderSubscribers"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RemoveUserFromFolderSubscribers xmlns="http://tempuri.org/">
<AuthenticationTicket>abc123-def456</AuthenticationTicket>
<FolderPath>/MyLibrary/Projects</FolderPath>
<UserName>jsmith</UserName>
<IncludeSubObjects>true</IncludeSubObjects>
</RemoveUserFromFolderSubscribers>
</soap:Body>
</soap:Envelope>
FolderPath must point to an existing folder; an error is returned if the path is not foundUserName must be a valid user in the systemIncludeSubObjects to true recursively removes the user from all nested folders and documentsRemoveUserFromDocumentSubscribers for removing a user from a single document’s subscription listRemoveUsergroupFromFolderSubscribers for removing a user group instead of an individual user