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": "27f92704-6c50-4ac8-8b29-478d76b736a0",
"Name": "sample string 2",
"OrganizationId": "ef12ab59-c853-4bbd-9e64-7cb3e3053f2d"
},
{
"Id": "27f92704-6c50-4ac8-8b29-478d76b736a0",
"Name": "sample string 2",
"OrganizationId": "ef12ab59-c853-4bbd-9e64-7cb3e3053f2d"
}
]
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>27f92704-6c50-4ac8-8b29-478d76b736a0</Id>
<Name>sample string 2</Name>
<OrganizationId>ef12ab59-c853-4bbd-9e64-7cb3e3053f2d</OrganizationId>
</RoleSimple>
<RoleSimple>
<Id>27f92704-6c50-4ac8-8b29-478d76b736a0</Id>
<Name>sample string 2</Name>
<OrganizationId>ef12ab59-c853-4bbd-9e64-7cb3e3053f2d</OrganizationId>
</RoleSimple>
</ArrayOfRoleSimple>