/v1/apps/{app_id}/permissions/enforcementAuthList permissions that at least one Consumer-API route enforces
Returns the deduplicated set of permission strings that any handler in this users-api build gates via `@RequireAppPermission`. Drives the console "Enforced" badge — a customer who binds `user.delete` to a role can see whether any route in this deploy actually checks for it. App-agnostic in shape; the path parameter is included for URN symmetry with the rest of the per-app surface, not to narrow the response.
Path parameters
app_id*stringId of the app.
Response · 200
data*arrayDeduplicated set of `<resource>.<action>` permission strings that at least one Consumer-API route gates via `@RequireAppPermission`. App-agnostic — the same users-api binary serves every app, so the set does not vary by `:appId`. Lets the console surface an "Enforced" badge so customers can tell which catalog entries do real work.
Example: ["session.revoke","user.list"]
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/permissions/enforcement
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const enforcedPermissions = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").permissions.enforcement.list();auth.admin.app(…).permissions.enforcement.list(options?): Auth.EnforcedPermissions
Response
{
"data": [
"session.revoke",
"user.list"
]
}