GET api/organizations/{organizationId}/users/{userId}/roles
Get all the roles for the specified userId. This method requires that admin role
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| organizationId | globally unique identifier |
Required |
|
| userId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of RoleSimple| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| OrganizationId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "891c699b-c499-49c7-ae7c-91eef329178c",
"Name": "sample string 2",
"OrganizationId": "873786c2-7c9e-4c6e-80ee-1f43b2dd67fd"
},
{
"Id": "891c699b-c499-49c7-ae7c-91eef329178c",
"Name": "sample string 2",
"OrganizationId": "873786c2-7c9e-4c6e-80ee-1f43b2dd67fd"
}
]
application/xml, text/xml
Sample:
<ArrayOfRoleSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCapture.DTO">
<RoleSimple>
<Id>891c699b-c499-49c7-ae7c-91eef329178c</Id>
<Name>sample string 2</Name>
<OrganizationId>873786c2-7c9e-4c6e-80ee-1f43b2dd67fd</OrganizationId>
</RoleSimple>
<RoleSimple>
<Id>891c699b-c499-49c7-ae7c-91eef329178c</Id>
<Name>sample string 2</Name>
<OrganizationId>873786c2-7c9e-4c6e-80ee-1f43b2dd67fd</OrganizationId>
</RoleSimple>
</ArrayOfRoleSimple>