GET api/Permissions/Categories

Gets the permission categories.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of permission category models.

Collection of ESignSystems.SmartSAFE.Models.Security.PermissionCategoryModel
NameDescriptionTypeAdditional information
PermissionCategoryId

Gets or sets the permission category identifier.

integer

None.

Name

Gets or sets the Name.

string

None.

Permissions

Gets or sets the list of permissions.

Collection of ESignSystems.SmartSAFE.Models.Security.PermissionModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PermissionCategoryId": 1,
    "Name": "sample string 1",
    "Permissions": [
      {
        "PermissionId": 1,
        "Name": "sample string 1",
        "PermissionCategoryId": 1,
        "UserAssignmentCount": 2
      },
      {
        "PermissionId": 1,
        "Name": "sample string 1",
        "PermissionCategoryId": 1,
        "UserAssignmentCount": 2
      }
    ]
  },
  {
    "PermissionCategoryId": 1,
    "Name": "sample string 1",
    "Permissions": [
      {
        "PermissionId": 1,
        "Name": "sample string 1",
        "PermissionCategoryId": 1,
        "UserAssignmentCount": 2
      },
      {
        "PermissionId": 1,
        "Name": "sample string 1",
        "PermissionCategoryId": 1,
        "UserAssignmentCount": 2
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfPermissionCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESignSystems.SmartSAFE.Models.Security">
  <PermissionCategoryModel>
    <Name>sample string 1</Name>
    <PermissionCategoryId>1</PermissionCategoryId>
    <Permissions>
      <PermissionModel>
        <Name>sample string 1</Name>
        <PermissionCategoryId>1</PermissionCategoryId>
        <PermissionId>1</PermissionId>
        <UserAssignmentCount>2</UserAssignmentCount>
      </PermissionModel>
      <PermissionModel>
        <Name>sample string 1</Name>
        <PermissionCategoryId>1</PermissionCategoryId>
        <PermissionId>1</PermissionId>
        <UserAssignmentCount>2</UserAssignmentCount>
      </PermissionModel>
    </Permissions>
  </PermissionCategoryModel>
  <PermissionCategoryModel>
    <Name>sample string 1</Name>
    <PermissionCategoryId>1</PermissionCategoryId>
    <Permissions>
      <PermissionModel>
        <Name>sample string 1</Name>
        <PermissionCategoryId>1</PermissionCategoryId>
        <PermissionId>1</PermissionId>
        <UserAssignmentCount>2</UserAssignmentCount>
      </PermissionModel>
      <PermissionModel>
        <Name>sample string 1</Name>
        <PermissionCategoryId>1</PermissionCategoryId>
        <PermissionId>1</PermissionId>
        <UserAssignmentCount>2</UserAssignmentCount>
      </PermissionModel>
    </Permissions>
  </PermissionCategoryModel>
</ArrayOfPermissionCategoryModel>