GET api/PBI_reportUser/users/{customerId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

PBI_UserWithPowerBiReportsViewModel
NameDescriptionTypeAdditional information
reports

Collection of PBI_GetReportViewModel

None.

users

Collection of PBI_UserWithPowerBiReportsUserViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "reports": [
    {
      "id": "556fe46f-13e1-43d1-8c8b-b17c1822ddcd",
      "names": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      },
      "name": "sample string 2",
      "module_type": "sample string 3"
    },
    {
      "id": "556fe46f-13e1-43d1-8c8b-b17c1822ddcd",
      "names": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      },
      "name": "sample string 2",
      "module_type": "sample string 3"
    }
  ],
  "users": [
    {
      "reports": [
        {
          "enable": true,
          "active": true,
          "report_info_id": "93756e16-0f58-49e5-92f9-14c8f0280cbe"
        },
        {
          "enable": true,
          "active": true,
          "report_info_id": "93756e16-0f58-49e5-92f9-14c8f0280cbe"
        }
      ],
      "user_id": "0ffd1400-d18a-49eb-867f-3d40fd27f241",
      "username": "sample string 2"
    },
    {
      "reports": [
        {
          "enable": true,
          "active": true,
          "report_info_id": "93756e16-0f58-49e5-92f9-14c8f0280cbe"
        },
        {
          "enable": true,
          "active": true,
          "report_info_id": "93756e16-0f58-49e5-92f9-14c8f0280cbe"
        }
      ],
      "user_id": "0ffd1400-d18a-49eb-867f-3d40fd27f241",
      "username": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<PBI_UserWithPowerBiReportsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <reports>
    <PBI_GetReportViewModel>
      <id>556fe46f-13e1-43d1-8c8b-b17c1822ddcd</id>
      <module_type>sample string 3</module_type>
      <name>sample string 2</name>
      <names xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </names>
    </PBI_GetReportViewModel>
    <PBI_GetReportViewModel>
      <id>556fe46f-13e1-43d1-8c8b-b17c1822ddcd</id>
      <module_type>sample string 3</module_type>
      <name>sample string 2</name>
      <names xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </names>
    </PBI_GetReportViewModel>
  </reports>
  <users>
    <PBI_UserWithPowerBiReportsUserViewModel>
      <reports>
        <powerBiReportUser>
          <active>true</active>
          <enable>true</enable>
          <report_info_id>93756e16-0f58-49e5-92f9-14c8f0280cbe</report_info_id>
        </powerBiReportUser>
        <powerBiReportUser>
          <active>true</active>
          <enable>true</enable>
          <report_info_id>93756e16-0f58-49e5-92f9-14c8f0280cbe</report_info_id>
        </powerBiReportUser>
      </reports>
      <user_id>0ffd1400-d18a-49eb-867f-3d40fd27f241</user_id>
      <username>sample string 2</username>
    </PBI_UserWithPowerBiReportsUserViewModel>
    <PBI_UserWithPowerBiReportsUserViewModel>
      <reports>
        <powerBiReportUser>
          <active>true</active>
          <enable>true</enable>
          <report_info_id>93756e16-0f58-49e5-92f9-14c8f0280cbe</report_info_id>
        </powerBiReportUser>
        <powerBiReportUser>
          <active>true</active>
          <enable>true</enable>
          <report_info_id>93756e16-0f58-49e5-92f9-14c8f0280cbe</report_info_id>
        </powerBiReportUser>
      </reports>
      <user_id>0ffd1400-d18a-49eb-867f-3d40fd27f241</user_id>
      <username>sample string 2</username>
    </PBI_UserWithPowerBiReportsUserViewModel>
  </users>
</PBI_UserWithPowerBiReportsViewModel>