GET api/PBI_role/users/{customerId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
PBI_UserWithPowerBiRolesViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| roles | Collection of PBI_RoleViewModel |
None. |
|
| users | Collection of PBI_UserWithPowerBiRolesUserViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"roles": [
{
"active": true,
"code": "sample string 2",
"customer_ID": "f0ebc3d3-8f60-4793-adcf-23510871d002",
"customerName": "sample string 4",
"id": "98d52088-21a8-4d04-bcdf-eb071c97fb44",
"names": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"permissions": [
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
},
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
}
],
"site_ID": "306ba0fa-a9d2-4891-a6b5-b70d30fe545c",
"siteName": "sample string 8"
},
{
"active": true,
"code": "sample string 2",
"customer_ID": "f0ebc3d3-8f60-4793-adcf-23510871d002",
"customerName": "sample string 4",
"id": "98d52088-21a8-4d04-bcdf-eb071c97fb44",
"names": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"permissions": [
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
},
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
}
],
"site_ID": "306ba0fa-a9d2-4891-a6b5-b70d30fe545c",
"siteName": "sample string 8"
}
],
"users": [
{
"user_id": "f5087e1d-f653-452d-b95a-d756bb88a3e2",
"username": "sample string 2",
"roles": [
{
"active": true,
"code": "sample string 2",
"customer_ID": "f0ebc3d3-8f60-4793-adcf-23510871d002",
"customerName": "sample string 4",
"id": "98d52088-21a8-4d04-bcdf-eb071c97fb44",
"names": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"permissions": [
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
},
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
}
],
"site_ID": "306ba0fa-a9d2-4891-a6b5-b70d30fe545c",
"siteName": "sample string 8"
},
{
"active": true,
"code": "sample string 2",
"customer_ID": "f0ebc3d3-8f60-4793-adcf-23510871d002",
"customerName": "sample string 4",
"id": "98d52088-21a8-4d04-bcdf-eb071c97fb44",
"names": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"permissions": [
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
},
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
}
],
"site_ID": "306ba0fa-a9d2-4891-a6b5-b70d30fe545c",
"siteName": "sample string 8"
}
]
},
{
"user_id": "f5087e1d-f653-452d-b95a-d756bb88a3e2",
"username": "sample string 2",
"roles": [
{
"active": true,
"code": "sample string 2",
"customer_ID": "f0ebc3d3-8f60-4793-adcf-23510871d002",
"customerName": "sample string 4",
"id": "98d52088-21a8-4d04-bcdf-eb071c97fb44",
"names": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"permissions": [
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
},
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
}
],
"site_ID": "306ba0fa-a9d2-4891-a6b5-b70d30fe545c",
"siteName": "sample string 8"
},
{
"active": true,
"code": "sample string 2",
"customer_ID": "f0ebc3d3-8f60-4793-adcf-23510871d002",
"customerName": "sample string 4",
"id": "98d52088-21a8-4d04-bcdf-eb071c97fb44",
"names": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"permissions": [
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
},
{
"id": "b3e475a3-5996-45eb-8ad9-b4e362fe4929",
"active": true,
"foreign_ID": "6081d57d-7b53-4a9d-9e65-c28fcb80655f",
"foreign_Label": "sample string 3",
"type": 1
}
],
"site_ID": "306ba0fa-a9d2-4891-a6b5-b70d30fe545c",
"siteName": "sample string 8"
}
]
}
]
}
application/xml, text/xml
Sample:
<PBI_UserWithPowerBiRolesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<roles>
<PBI_RoleViewModel>
<active>true</active>
<code>sample string 2</code>
<customerName>sample string 4</customerName>
<customer_ID>f0ebc3d3-8f60-4793-adcf-23510871d002</customer_ID>
<id>98d52088-21a8-4d04-bcdf-eb071c97fb44</id>
<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>
<permissions>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
</permissions>
<siteName>sample string 8</siteName>
<site_ID>306ba0fa-a9d2-4891-a6b5-b70d30fe545c</site_ID>
</PBI_RoleViewModel>
<PBI_RoleViewModel>
<active>true</active>
<code>sample string 2</code>
<customerName>sample string 4</customerName>
<customer_ID>f0ebc3d3-8f60-4793-adcf-23510871d002</customer_ID>
<id>98d52088-21a8-4d04-bcdf-eb071c97fb44</id>
<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>
<permissions>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
</permissions>
<siteName>sample string 8</siteName>
<site_ID>306ba0fa-a9d2-4891-a6b5-b70d30fe545c</site_ID>
</PBI_RoleViewModel>
</roles>
<users>
<PBI_UserWithPowerBiRolesUserViewModel>
<roles>
<PBI_RoleViewModel>
<active>true</active>
<code>sample string 2</code>
<customerName>sample string 4</customerName>
<customer_ID>f0ebc3d3-8f60-4793-adcf-23510871d002</customer_ID>
<id>98d52088-21a8-4d04-bcdf-eb071c97fb44</id>
<names xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 1</d6p1:Key>
<d6p1:Value>sample string 2</d6p1:Value>
</d6p1:KeyValueOfstringstring>
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 3</d6p1:Key>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</names>
<permissions>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
</permissions>
<siteName>sample string 8</siteName>
<site_ID>306ba0fa-a9d2-4891-a6b5-b70d30fe545c</site_ID>
</PBI_RoleViewModel>
<PBI_RoleViewModel>
<active>true</active>
<code>sample string 2</code>
<customerName>sample string 4</customerName>
<customer_ID>f0ebc3d3-8f60-4793-adcf-23510871d002</customer_ID>
<id>98d52088-21a8-4d04-bcdf-eb071c97fb44</id>
<names xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 1</d6p1:Key>
<d6p1:Value>sample string 2</d6p1:Value>
</d6p1:KeyValueOfstringstring>
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 3</d6p1:Key>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</names>
<permissions>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
</permissions>
<siteName>sample string 8</siteName>
<site_ID>306ba0fa-a9d2-4891-a6b5-b70d30fe545c</site_ID>
</PBI_RoleViewModel>
</roles>
<user_id>f5087e1d-f653-452d-b95a-d756bb88a3e2</user_id>
<username>sample string 2</username>
</PBI_UserWithPowerBiRolesUserViewModel>
<PBI_UserWithPowerBiRolesUserViewModel>
<roles>
<PBI_RoleViewModel>
<active>true</active>
<code>sample string 2</code>
<customerName>sample string 4</customerName>
<customer_ID>f0ebc3d3-8f60-4793-adcf-23510871d002</customer_ID>
<id>98d52088-21a8-4d04-bcdf-eb071c97fb44</id>
<names xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 1</d6p1:Key>
<d6p1:Value>sample string 2</d6p1:Value>
</d6p1:KeyValueOfstringstring>
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 3</d6p1:Key>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</names>
<permissions>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
</permissions>
<siteName>sample string 8</siteName>
<site_ID>306ba0fa-a9d2-4891-a6b5-b70d30fe545c</site_ID>
</PBI_RoleViewModel>
<PBI_RoleViewModel>
<active>true</active>
<code>sample string 2</code>
<customerName>sample string 4</customerName>
<customer_ID>f0ebc3d3-8f60-4793-adcf-23510871d002</customer_ID>
<id>98d52088-21a8-4d04-bcdf-eb071c97fb44</id>
<names xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 1</d6p1:Key>
<d6p1:Value>sample string 2</d6p1:Value>
</d6p1:KeyValueOfstringstring>
<d6p1:KeyValueOfstringstring>
<d6p1:Key>sample string 3</d6p1:Key>
<d6p1:Value>sample string 4</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</names>
<permissions>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
<PBI_PermissionsViewModel>
<Active>true</Active>
<Foreign_ID>6081d57d-7b53-4a9d-9e65-c28fcb80655f</Foreign_ID>
<Foreign_Label>sample string 3</Foreign_Label>
<ID>b3e475a3-5996-45eb-8ad9-b4e362fe4929</ID>
<type>SiteCustomer</type>
</PBI_PermissionsViewModel>
</permissions>
<siteName>sample string 8</siteName>
<site_ID>306ba0fa-a9d2-4891-a6b5-b70d30fe545c</site_ID>
</PBI_RoleViewModel>
</roles>
<user_id>f5087e1d-f653-452d-b95a-d756bb88a3e2</user_id>
<username>sample string 2</username>
</PBI_UserWithPowerBiRolesUserViewModel>
</users>
</PBI_UserWithPowerBiRolesViewModel>