Change the User Access Permissions on a Shared Folder by User Name

 

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

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

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

{id}
The identifier of the shared folder.

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

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

{username}
The logon name of a user.

{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/permission/1?username=AuroraUser&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: