POST api/ownerusers

Returns all users in specific owner context based on provided filters

Request Information

URI Parameters

None.

Body Parameters

Request filters

GetOwnerUsersRequest
NameDescriptionTypeAdditional information
OwnerId

globally unique identifier

None.

KnownSearchFields

Collection of string

None.

KnownSortFields

Collection of string

None.

PageSize

integer

None.

PageIndex

integer

None.

SearchBy

Collection of Filter

None.

SortBy

Collection of Sort

None.

Request Formats

application/json, text/json

Sample:
{
  "OwnerId": "b155c8dd-d5a9-42c6-9cd8-bd81992cd055",
  "KnownSearchFields": [
    "Username",
    "FirstName",
    "LastName",
    "EmailAddress",
    "UserRole",
    "IsActive"
  ],
  "KnownSortFields": [
    "Username",
    "FirstName",
    "LastName",
    "EmailAddress"
  ],
  "PageSize": 2,
  "PageIndex": 3,
  "SearchBy": [
    {
      "Key": "sample string 1",
      "Value": {},
      "Type": 0
    },
    {
      "Key": "sample string 1",
      "Value": {},
      "Type": 0
    }
  ],
  "SortBy": [
    {
      "Key": "sample string 1",
      "Order": 0
    },
    {
      "Key": "sample string 1",
      "Order": 0
    }
  ]
}

application/xml, text/xml

Sample:
<GetOwnerUsersRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests.GetRequests">
  <KnownSearchFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
    <d2p1:string>Username</d2p1:string>
    <d2p1:string>FirstName</d2p1:string>
    <d2p1:string>LastName</d2p1:string>
    <d2p1:string>EmailAddress</d2p1:string>
    <d2p1:string>UserRole</d2p1:string>
    <d2p1:string>IsActive</d2p1:string>
  </KnownSearchFields>
  <KnownSortFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
    <d2p1:string>Username</d2p1:string>
    <d2p1:string>FirstName</d2p1:string>
    <d2p1:string>LastName</d2p1:string>
    <d2p1:string>EmailAddress</d2p1:string>
  </KnownSortFields>
  <PageIndex xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">3</PageIndex>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">2</PageSize>
  <SearchBy xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
    <Filter>
      <Key>sample string 1</Key>
      <Type>None</Type>
      <Value />
    </Filter>
    <Filter>
      <Key>sample string 1</Key>
      <Type>None</Type>
      <Value />
    </Filter>
  </SearchBy>
  <SortBy xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
    <Sort>
      <Key>sample string 1</Key>
      <Order>None</Order>
    </Sort>
    <Sort>
      <Key>sample string 1</Key>
      <Order>None</Order>
    </Sort>
  </SortBy>
  <OwnerId>b155c8dd-d5a9-42c6-9cd8-bd81992cd055</OwnerId>
</GetOwnerUsersRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of users

ApiCollectionResponseOfGetOwnerUserResponse
NameDescriptionTypeAdditional information
PageSize

integer

None.

PageIndex

integer

None.

Total

integer

None.

SearchBy

Collection of Filter

None.

SortBy

Collection of Sort

None.

Data

Collection of GetOwnerUserResponse

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "PageSize": 1,
  "PageIndex": 2,
  "Total": 3,
  "SearchBy": [
    {
      "Key": "sample string 1",
      "Value": {},
      "Type": 0
    },
    {
      "Key": "sample string 1",
      "Value": {},
      "Type": 0
    }
  ],
  "SortBy": [
    {
      "Key": "sample string 1",
      "Order": 0
    },
    {
      "Key": "sample string 1",
      "Order": 0
    }
  ],
  "Data": [
    {
      "Id": "2aeecb95-2aa0-4b3c-889e-d42d1cde11de",
      "Username": "sample string 2",
      "Email": "sample string 3",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "LoginProviders": [
        {
          "Id": "50986e4b-b190-479a-8372-5837b2688c8b",
          "ProviderName": "sample string 2",
          "ProviderKey": "sample string 3",
          "UserId": "1bb6e8b1-5b7d-4a05-bd65-0a547154e99a"
        },
        {
          "Id": "50986e4b-b190-479a-8372-5837b2688c8b",
          "ProviderName": "sample string 2",
          "ProviderKey": "sample string 3",
          "UserId": "1bb6e8b1-5b7d-4a05-bd65-0a547154e99a"
        }
      ],
      "Roles": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "Id": "2aeecb95-2aa0-4b3c-889e-d42d1cde11de",
      "Username": "sample string 2",
      "Email": "sample string 3",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "LoginProviders": [
        {
          "Id": "50986e4b-b190-479a-8372-5837b2688c8b",
          "ProviderName": "sample string 2",
          "ProviderKey": "sample string 3",
          "UserId": "1bb6e8b1-5b7d-4a05-bd65-0a547154e99a"
        },
        {
          "Id": "50986e4b-b190-479a-8372-5837b2688c8b",
          "ProviderName": "sample string 2",
          "ProviderKey": "sample string 3",
          "UserId": "1bb6e8b1-5b7d-4a05-bd65-0a547154e99a"
        }
      ],
      "Roles": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ApiCollectionResponseOfGetOwnerUserResponseLgVmlFmJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Alice.Dto.Responses">
    <d2p1:GetOwnerUserResponse>
      <d2p1:Email>sample string 3</d2p1:Email>
      <d2p1:FirstName>sample string 4</d2p1:FirstName>
      <d2p1:Id>2aeecb95-2aa0-4b3c-889e-d42d1cde11de</d2p1:Id>
      <d2p1:LastName>sample string 5</d2p1:LastName>
      <d2p1:LoginProviders>
        <d2p1:GetLoginProviderResponse>
          <d2p1:Id>50986e4b-b190-479a-8372-5837b2688c8b</d2p1:Id>
          <d2p1:ProviderKey>sample string 3</d2p1:ProviderKey>
          <d2p1:ProviderName>sample string 2</d2p1:ProviderName>
          <d2p1:UserId>1bb6e8b1-5b7d-4a05-bd65-0a547154e99a</d2p1:UserId>
        </d2p1:GetLoginProviderResponse>
        <d2p1:GetLoginProviderResponse>
          <d2p1:Id>50986e4b-b190-479a-8372-5837b2688c8b</d2p1:Id>
          <d2p1:ProviderKey>sample string 3</d2p1:ProviderKey>
          <d2p1:ProviderName>sample string 2</d2p1:ProviderName>
          <d2p1:UserId>1bb6e8b1-5b7d-4a05-bd65-0a547154e99a</d2p1:UserId>
        </d2p1:GetLoginProviderResponse>
      </d2p1:LoginProviders>
      <d2p1:Roles xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Roles>
      <d2p1:Username>sample string 2</d2p1:Username>
    </d2p1:GetOwnerUserResponse>
    <d2p1:GetOwnerUserResponse>
      <d2p1:Email>sample string 3</d2p1:Email>
      <d2p1:FirstName>sample string 4</d2p1:FirstName>
      <d2p1:Id>2aeecb95-2aa0-4b3c-889e-d42d1cde11de</d2p1:Id>
      <d2p1:LastName>sample string 5</d2p1:LastName>
      <d2p1:LoginProviders>
        <d2p1:GetLoginProviderResponse>
          <d2p1:Id>50986e4b-b190-479a-8372-5837b2688c8b</d2p1:Id>
          <d2p1:ProviderKey>sample string 3</d2p1:ProviderKey>
          <d2p1:ProviderName>sample string 2</d2p1:ProviderName>
          <d2p1:UserId>1bb6e8b1-5b7d-4a05-bd65-0a547154e99a</d2p1:UserId>
        </d2p1:GetLoginProviderResponse>
        <d2p1:GetLoginProviderResponse>
          <d2p1:Id>50986e4b-b190-479a-8372-5837b2688c8b</d2p1:Id>
          <d2p1:ProviderKey>sample string 3</d2p1:ProviderKey>
          <d2p1:ProviderName>sample string 2</d2p1:ProviderName>
          <d2p1:UserId>1bb6e8b1-5b7d-4a05-bd65-0a547154e99a</d2p1:UserId>
        </d2p1:GetLoginProviderResponse>
      </d2p1:LoginProviders>
      <d2p1:Roles xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:Roles>
      <d2p1:Username>sample string 2</d2p1:Username>
    </d2p1:GetOwnerUserResponse>
  </Data>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <PageIndex>2</PageIndex>
  <PageSize>1</PageSize>
  <SearchBy>
    <Filter>
      <Key>sample string 1</Key>
      <Type>None</Type>
      <Value />
    </Filter>
    <Filter>
      <Key>sample string 1</Key>
      <Type>None</Type>
      <Value />
    </Filter>
  </SearchBy>
  <SortBy>
    <Sort>
      <Key>sample string 1</Key>
      <Order>None</Order>
    </Sort>
    <Sort>
      <Key>sample string 1</Key>
      <Order>None</Order>
    </Sort>
  </SortBy>
  <Total>3</Total>
</ApiCollectionResponseOfGetOwnerUserResponseLgVmlFmJ>