GET {repositoryId}/OrganizationalUnit/{id}/StaffReportingTo?includeAllLevels={includeAllLevels}&includeAllPeriods={includeAllPeriods}&onlyPrimary={onlyPrimary}

Gets the list of references to the identities that are subordinated to the given organizational unit.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the organizational unit.

string

Required

includeAllLevels

If true, all the bottom hierarchy from the given node will be considered, otherwise the first level only

boolean

Default value is False

includeAllPeriods

If true, all the periods will be considered, otherwise only the currently valid assignments.

boolean

Default value is False

onlyPrimary

If true, only the primary assignments will be considered.

boolean

Default value is False

repositoryId

ID of the resource repository (optional).

string

Default value is

Body Parameters

None.

Response Information

Resource Description

The references to the identities that are subordinated to the given organizational unit.

Collection of NamedReference
NameDescriptionTypeAdditional information
Name

string

None.

Url

string

None.

Type

Types

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Url": "sample string 2",
    "Type": 0
  },
  {
    "Name": "sample string 1",
    "Url": "sample string 2",
    "Type": 0
  }
]

application/xml, text/xml

Sample:
<ArrayOfNamedReference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.openworkbpm.com/schema">
  <NamedReference>
    <Type>Undefined</Type>
    <Url>sample string 2</Url>
    <Name>sample string 1</Name>
  </NamedReference>
  <NamedReference>
    <Type>Undefined</Type>
    <Url>sample string 2</Url>
    <Name>sample string 1</Name>
  </NamedReference>
</ArrayOfNamedReference>