GET serviceowner/reportees?subject={subject}&serviceCode={serviceCode}&serviceEdition={serviceEdition}&roleDefinitionId={roleDefinitionId}&app={app}&showConsentReportees={showConsentReportees}

Gets a list of reportee entities that the subject can represent.

Request Information

Parameters

NameDescriptionAdditional information
subject The social security number of the user to retrieve the reportee list for.

Define this parameter in the request URI.

serviceCode ServiceCode of the service the result should be filtered on. Optional

Define this parameter in the request URI.

serviceEdition ServiceEdition of the service the result should be filtered on. Optional

Define this parameter in the request URI.

roleDefinitionId The RoleDefinitionId the result should be filtered on. Optional. NB: Role definition ids can be different between production and test environment for the same role. Use the general role definitions API endpoint to retrieve/verify correct role definitions.

Define this parameter in the request URI.

app The Altinn app identifier in the format {org}/{appname}

Define this parameter in the request URI.

queryOptions OData Query details. This object is created by the Framework based on parameters in the url.

None.

showConsentReportees Obsolete: This parameter is no longer in use.

Define this parameter in the request URI.

Response Information

List of legal entities that the user can represent.

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 19"
    }
  },
  "_embedded": {
    "sample string 5": [
      {
        "ReporteeId": "sample string 47",
        "PartyUUID": "6e32371a-dabd-4c6f-b888-6ffd2931f8a7",
        "Name": "sample string 33",
        "Type": "sample string 99",
        "SocialSecurityNumber": "sample string 51",
        "OrganizationNumber": "sample string 43",
        "ParentOrganizationNumber": "sample string 52",
        "OrganizationForm": "sample string 86",
        "Status": "sample string 95",
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      },
      {
        "ReporteeId": "sample string 47",
        "PartyUUID": "6e32371a-dabd-4c6f-b888-6ffd2931f8a7",
        "Name": "sample string 33",
        "Type": "sample string 99",
        "SocialSecurityNumber": "sample string 51",
        "OrganizationNumber": "sample string 43",
        "ParentOrganizationNumber": "sample string 52",
        "OrganizationForm": "sample string 86",
        "Status": "sample string 95",
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      },
      {
        "ReporteeId": "sample string 47",
        "PartyUUID": "6e32371a-dabd-4c6f-b888-6ffd2931f8a7",
        "Name": "sample string 33",
        "Type": "sample string 99",
        "SocialSecurityNumber": "sample string 51",
        "OrganizationNumber": "sample string 43",
        "ParentOrganizationNumber": "sample string 52",
        "OrganizationForm": "sample string 86",
        "Status": "sample string 95",
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      }
    ]
  }
}