Skip to content

Validate Privileges

GET /api/validate-privileges

Authentication required.

Validates whether the authenticated user has the required privilege to access a specific application route. Used primarily by the frontend to determine which navigation items and pages to render.


Query Parameters

Parameter Type Required Description
path string Yes Application route path to validate (e.g., /procurement, /inventory-planning)

Supported Paths (Selected)

Path Required Privilege
/procurement Procurement / View
/demand Demand / View
/manufacturing Manufacturing / View
/forecast Forecast / View
/inventory Inventory / View
/inventory-planning Inventory Planning / View
/item-master Item Master / View
/supplier-master Supplier Master / View
/customer-master Customer Master / View
/warehouse-master Warehouse Master / View
/bill-of-materials Bill of Materials / View
/users Users / View
/scenario-analysis Scenarios / View
/issue-tracker Issue Tracker / View
/settings General Settings / View

Response - Access Granted

HTTP/1.1 200 OK

{
  "access": true
}

Response - Access Denied

HTTP/1.1 403 Forbidden

{
  "Message": "Not Privileged for this action",
  "Code": "User.NotPrivileged"
}

Code Example

response = session.get(
    "https://acme.knosc.com/api/validate-privileges",
    params={"path": "/procurement"}
)

if response.status_code == 200:
    print("Access granted to /procurement")
else:
    print("Access denied")