Permission Hierarchy

This s a documentation page for our shiny new REST API - you weren't meant to find it. This API isn't ready for public use yet. We're chopping and changing it a LOT as we grow it. So if you build something that uses it then it's very likely to break in a future update. Don't say you weren't warned!

URL:

https://api.kashflow.com/v2/permissionhierarchy

Method(s):

get

Response Formats:

JSON, XML

Description:

This method allows you to retrieve permission hierarchy which explains permission’s dependency.

Parameters

NameTypeDescription
HierarchyIdIntegerDatabase Id of the heirarchy
PermissionIdIntegerDatabase Id of the permission associated with a particular hierarchy
ShouldHavePermissionIdIntegerDatabase Id of the permission that a hierarchy inherits(has)

GET Operation

GET of permissionhierarchy returns the list of dependencies for permission hierarchy of the Kashflow system.

URL : /permissionhierarchy

Example response for GET of permission hierarchy


[
      {
        "HierarchyId": "1",
        "PermissionId": "3",
        "ShouldHavePermissionId": "2"
      },
      {
        "HierarchyId": "2",
        "PermissionId": "4",
        "ShouldHavePermissionId": "3"
      },
      {
        "HierarchyId": "3",
        "PermissionId": "5",
        "ShouldHavePermissionId": "4"
      }
]

See how IRIS KashFlow works with your business and your books