GET restapi/personal/hierarchies/{hierarchyId}/members/v1?PageIndex={PageIndex}&PageSize={PageSize}

Get all members and their role in the specified hierarchy. Will only return members the calling user is allowed to see.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hierarchyId

The identifier of the hierarchy.

integer

Required

PageIndex

integer

None.

PageSize

integer

None.

Body Parameters

None.

Response Information

Resource Description

EntityList of members with role

EntityListOfItslearning.RestApi.Entities.PersonSimpleWithHierarchyRole
NameDescriptionTypeAdditional information
EntityArray

Collection of Itslearning.RestApi.Entities.PersonSimpleWithHierarchyRole

None.

Total

integer

None.

CurrentPageIndex

integer

None.

PageSize

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "EntityArray": [
    {
      "HierarchyRole": "sample string 1",
      "PersonId": 2,
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "FullName": "sample string 5",
      "ProfileUrl": "sample string 6",
      "AdditionalInfo": "sample string 7",
      "ProfileImageUrl": "sample string 8",
      "ProfileImageUrlSmall": "sample string 9"
    },
    {
      "HierarchyRole": "sample string 1",
      "PersonId": 2,
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "FullName": "sample string 5",
      "ProfileUrl": "sample string 6",
      "AdditionalInfo": "sample string 7",
      "ProfileImageUrl": "sample string 8",
      "ProfileImageUrlSmall": "sample string 9"
    }
  ],
  "Total": 1,
  "CurrentPageIndex": 2,
  "PageSize": 3
}

application/xml, text/xml

Sample:
<EntityList xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CurrentPageIndex>2</CurrentPageIndex>
  <EntityArray>
    <PersonSimpleWithHierarchyRole>
      <AdditionalInfo>sample string 7</AdditionalInfo>
      <FirstName>sample string 3</FirstName>
      <FullName>sample string 5</FullName>
      <LastName>sample string 4</LastName>
      <PersonId>2</PersonId>
      <ProfileImageUrl>sample string 8</ProfileImageUrl>
      <ProfileImageUrlSmall>sample string 9</ProfileImageUrlSmall>
      <ProfileUrl>sample string 6</ProfileUrl>
      <HierarchyRole>sample string 1</HierarchyRole>
    </PersonSimpleWithHierarchyRole>
    <PersonSimpleWithHierarchyRole>
      <AdditionalInfo>sample string 7</AdditionalInfo>
      <FirstName>sample string 3</FirstName>
      <FullName>sample string 5</FullName>
      <LastName>sample string 4</LastName>
      <PersonId>2</PersonId>
      <ProfileImageUrl>sample string 8</ProfileImageUrl>
      <ProfileImageUrlSmall>sample string 9</ProfileImageUrlSmall>
      <ProfileUrl>sample string 6</ProfileUrl>
      <HierarchyRole>sample string 1</HierarchyRole>
    </PersonSimpleWithHierarchyRole>
  </EntityArray>
  <PageSize>3</PageSize>
  <Total>1</Total>
</EntityList>