Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Retrieve Users

Updated: October 9, 2012

Applies To: Windows Server 2012 Essentials

Retrieves a list of users that have been created on the server.

URI Template

GET services/builtin/UserManagement.svc/users/index/{index}/count/{count}

{index}
The numerical position of the first user to be retrieved.

{count}
The number of users.

Sample Request

POST https://www.contoso.com/services/builtin/UserManagement.svc/users/index/0/count/100 HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Content-Length: 0

Sample Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 83
Content-Type: application/xml; charset=utf-8
Server: Microsoft-IIS/8.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff
Date: Mon, 31 Oct 2011 08:16:29 GMT
<PartialCollection_Of_UserInfo
    xmlns="http://contracts.microsoft.com/WindowsServerSolutions/2011/09/ManagementWebApi"
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CollectionChunk>
    <UserInfo>
      <AccessLevel>Administrator</AccessLevel>
      <CanChangePassword>true</CanChangePassword>
      <FirstName>Admin</FirstName>
      <Key>S-1-5-21-4054238435-649431279-2388979580-1115</Key>
      <LastName/>
      <RemoteWebAccess>true</RemoteWebAccess>
      <UserName>AuroraUser</UserName>
      <UserStatus>Enabled</UserStatus>
      <VpnAccess>true</VpnAccess>
    </UserInfo>
    <UserInfo>
      <AccessLevel>User</AccessLevel>
      <CanChangePassword>true</CanChangePassword>
      <FirstName>User</FirstName>
      <Key>S-1-5-21-4054238435-649431279-2388979580-1116</Key>
      <LastName/>
      <RemoteWebAccess>true</RemoteWebAccess>
      <UserName>AuroraStdUser</UserName>
      <UserStatus>Enabled</UserStatus>
      <VpnAccess>true</VpnAccess>
    </UserInfo>
  </CollectionChunk>
  <CollectionModified>2012-06-18T13:51:07.377017+08:00</CollectionModified>
  <CollectionSize>3</CollectionSize>
</PartialCollection_Of_UserInfo>

Error Codes

 

Error Code Error Message

400

One or more parameters are not valid.

401

Access is denied to the requested resource.

See Also

Show:
© 2015 Microsoft