Change the User Access Permissions on a Shared Folder by SID

 

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Modifies the access permissions of a user on a shared folder by specifying a security identifier.

POST services/builtin/StorageManagement.svc/serverfolder/{id}/modify/usersid/{userSid}/permission/{permission}?name={name}&description={description}

{id}
The identifier of the shared folder.

{userSid}
The security identifier (SID) of a user.

{permission}
The permission level. Use one of the following values:

Enumeration Value NameValueMeaning
None0No access.
ReadOnly1Read-only access.
Full2Read/write access.
Other3Unknown or unspecified access.

{name}
The name of the shared folder.

{description}
A description for the shared folder.

POST https://www.contoso.com/services/builtin/StorageManagement.svc/serverfolder/51760c8b-7024-4c8e-a78f-d7b05615273b/modify/usersid/S-1-5-21-2262141087-2005479377-3694225243-1117/permission/1?name=folder1&description=desc HTTP/1.1  
Content-Type: application/xml  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 0  
  

HTTP/1.1 200 OK  

Error CodeError Message
400One or more parameters are not valid.
401Access is denied to the requested resource.
404The path does not exist.

Web Service Methods

Community Additions

ADD
Show: