GET api/UserManagement/GetAllRoles

Get user roles

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

list of user roles

ResponseOfListOfRole
NameDescriptionTypeAdditional information
StatusCode

StatusCode

None.

Message

string

None.

Data

Collection of Role

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1000,
  "Message": "sample string 1",
  "Data": [
    {
      "RoleId": 1,
      "Name": "sample string 2",
      "IsDefault": true,
      "Permissions": [
        1,
        1
      ]
    },
    {
      "RoleId": 1,
      "Name": "sample string 2",
      "IsDefault": true,
      "Permissions": [
        1,
        1
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ResponseOfArrayOfRolekvwhp91_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User">
    <d2p1:Role>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:OrganizationId>3</d2p1:OrganizationId>
      <d2p1:Permissions xmlns:d4p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Enums.User">
        <d4p1:Permissions>CreateWorkflow</d4p1:Permissions>
        <d4p1:Permissions>CreateWorkflow</d4p1:Permissions>
      </d2p1:Permissions>
      <d2p1:RoleId>1</d2p1:RoleId>
    </d2p1:Role>
    <d2p1:Role>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:OrganizationId>3</d2p1:OrganizationId>
      <d2p1:Permissions xmlns:d4p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Enums.User">
        <d4p1:Permissions>CreateWorkflow</d4p1:Permissions>
        <d4p1:Permissions>CreateWorkflow</d4p1:Permissions>
      </d2p1:Permissions>
      <d2p1:RoleId>1</d2p1:RoleId>
    </d2p1:Role>
  </Data>
  <Message>sample string 1</Message>
  <Result />
  <StatusCode>Success</StatusCode>
</ResponseOfArrayOfRolekvwhp91_P>