Partager via


Retrieve User Connection Information

 

Retrieves a list of users from the server.

URI Template

GET Services/builtin/UserManagement.svc/users/connection/index/{startingIndex}/count/{amount}?username={userName}

startingIndex
The index of the first user account to be requested.

amount
The number of user accounts to retrieve.

userName
The user name whose authentication and authorization information is being used in the request.

Sample Request

POST https://www.contoso.com/services/builtin/UserManagement.svc/users/connection /index/0/count/5 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: no-cache  
Content-Length: 3964  
Content-Type: application/xml; charset=utf-8  
Server: Microsoft-IIS/8.5  
X-AspNet-Version: 4.0.30319  
X-Powered-By: ASP.NET  
X-Content-Type-Options: nosniff  
Date: Fri, 12 Apr 2013 03:42:27 GMT   
<PartialCollection_Of_ConnectionInfo xmlns="http://contracts.microsoft.com/WindowsServerEssentials/2011/09/WebApi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <CollectionChunk>  
    <ConnectionInfo>  
      <ClientInfo>  
        <ClientApplicationName>Microsoft.MyServer</ClientApplicationName>  
        <ClientApplicationPublisher>CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US</ClientApplicationPublisher>  
        <ClientApplicationVersion>1.0.0.0</ClientApplicationVersion>  
        <ClientHostname>10.172.7.66</ClientHostname>  
        <ClientIPAddress>10.172.7.66</ClientIPAddress>  
      </ClientInfo>  
      <EndTime>2013-04-08T19:34:56.2744656-07:00</EndTime>  
      <ServiceType>Unknown application</ServiceType>  
      <StartTime>2013-04-08T19:34:54.7442727-07:00</StartTime>  
      <UserInfo>  
        <AccountName>admin</AccountName>  
        <FirstName>admin</FirstName>  
        <LastName/>  
        <SidValue>S-1-5-21-1231220837-2245307156-4151862027-1001</SidValue>  
      </UserInfo>  
    </ConnectionInfo>  
    <ConnectionInfo>  
      <ClientInfo>  
        <ClientApplicationName>Microsoft.MyServer</ClientApplicationName>  
        <ClientApplicationPublisher>CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US</ClientApplicationPublisher>  
        <ClientApplicationVersion>1.0.0.0</ClientApplicationVersion>  
        <ClientHostname>10.172.7.66</ClientHostname>  
        <ClientIPAddress>10.172.7.66</ClientIPAddress>  
      </ClientInfo>  
      <EndTime>2013-04-08T19:35:42.0960369-07:00</EndTime>  
      <ServiceType>Unknown application</ServiceType>  
      <StartTime>2013-04-08T19:35:41.7835861-07:00</StartTime>  
      <UserInfo>  
        <AccountName>admin</AccountName>  
        <FirstName>admin</FirstName>  
        <LastName/>  
        <SidValue>S-1-5-21-1231220837-2245307156-4151862027-1001</SidValue>  
      </UserInfo>  
    </ConnectionInfo>  
    <ConnectionInfo>  
      <ClientInfo>  
        <ClientApplicationName>Microsoft.MyServer</ClientApplicationName>  
        <ClientApplicationPublisher>CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US</ClientApplicationPublisher>  
        <ClientApplicationVersion>1.0.0.0</ClientApplicationVersion>  
        <ClientHostname>10.172.7.66</ClientHostname>  
        <ClientIPAddress>10.172.7.66</ClientIPAddress>  
      </ClientInfo>  
      <EndTime>2013-04-08T19:58:12.6994651-07:00</EndTime>  
      <ServiceType>Unknown application</ServiceType>  
      <StartTime>2013-04-08T19:35:42.2210258-07:00</StartTime>  
      <UserInfo>  
        <AccountName>admin</AccountName>  
        <FirstName>admin</FirstName>  
        <LastName/>  
        <SidValue>S-1-5-21-1231220837-2245307156-4151862027-1001</SidValue>  
      </UserInfo>  
    </ConnectionInfo>  
    <ConnectionInfo>  
      <ClientInfo>  
        <ClientApplicationName>Microsoft.MyServer</ClientApplicationName>  
        <ClientApplicationPublisher>CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US</ClientApplicationPublisher>  
        <ClientApplicationVersion>1.0.0.0</ClientApplicationVersion>  
        <ClientHostname>10.172.7.66</ClientHostname>  
        <ClientIPAddress>10.172.7.66</ClientIPAddress>  
      </ClientInfo>  
      <EndTime>2013-04-08T19:35:42.8318234-07:00</EndTime>  
      <ServiceType>Unknown application</ServiceType>  
      <StartTime>2013-04-08T19:35:42.5037461-07:00</StartTime>  
      <UserInfo>  
        <AccountName>admin</AccountName>  
        <FirstName>admin</FirstName>  
        <LastName/>  
        <SidValue>S-1-5-21-1231220837-2245307156-4151862027-1001</SidValue>  
      </UserInfo>  
    </ConnectionInfo>  
    <ConnectionInfo>  
      <ClientInfo>  
        <ClientApplicationName>Microsoft.MyServer</ClientApplicationName>  
        <ClientApplicationPublisher>CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US</ClientApplicationPublisher>  
        <ClientApplicationVersion>1.0.0.0</ClientApplicationVersion>  
        <ClientHostname>10.172.7.66</ClientHostname>  
        <ClientIPAddress>10.172.7.66</ClientIPAddress>  
      </ClientInfo>  
      <EndTime>2013-04-08T19:37:57.3748103-07:00</EndTime>  
      <ServiceType>Unknown application</ServiceType>  
      <StartTime>2013-04-08T19:37:54.7503161-07:00</StartTime>  
      <UserInfo>  
        <AccountName>admin</AccountName>  
        <FirstName>admin</FirstName>  
        <LastName/>  
        <SidValue>S-1-5-21-1231220837-2245307156-4151862027-1001</SidValue>  
      </UserInfo>  
    </ConnectionInfo>  
  </CollectionChunk>  
  <CollectionModified>2013-04-11T20:42:27.7608025-07:00</CollectionModified>  
  <CollectionSize>64</CollectionSize>  
</PartialCollection_Of_ConnectionInfo>  
  

Error Codes

Error Code Error Message
400 The request is invalid.
401 Access to the requested resource is denied.
404 The request resource does not exist.