Endpoint and Actor Inventory
Build the two lists every authorization review depends on: every operation the API exposes and every kind of actor that can call it
Use when: you start an access-control review of an API you own or are authorized to assess and need a complete testing surface
Avoid when: the API documents operations and roles completely and your only job is checking one specific permission rule
Procedure
- Collect operations from every available source: description documents, client code, gateway routes and your own crawl of a test account.
- Normalize each operation to method plus path template so
/orders/4821and/orders/9903collapse into one row. - List actor kinds as the system actually distinguishes them: anonymous, member, elevated, service and any tenant or organization dimension.
- For each actor record how the credential is obtained, so a test session for that actor can be reproduced exactly.
- Mark operations that are administrative, destructive or handle bulk data, since those get the strictest review.
- Store the inventory as a table your matrix command can consume, and refresh it whenever the API changes.
Signals
- Operations appear in clients that are absent from the published description document, which means undocumented surface exists.
- Two actors the product treats as different share one credential type, so your tests must distinguish them by claim rather than by token format.
- An operation handles bulk or export behaviour, which makes it a high-value authorization target.
- The actor list from the product team differs from the roles you can actually obtain in a test environment.
Patterns
1. Operation row
GET /api/orders/{id} template=/api/orders/{id} auth=session object=yes sensitive=no
2. Actor row
id=member role=member credential=session-cookie source=self-registration
id=other-member role=member credential=session-cookie source=second-test-account
3. Coverage rule
every operation x every actor must have an expected status before testing starts
Pitfalls
- Listing endpoints without listing actors, which produces a matrix nobody can execute.
- Treating role names from documentation as authoritative when the running system issues different claims.
- Forgetting service-to-service actors, which often reach endpoints that human roles cannot.
Done when
- Every operation is normalized to a path template and every actor has a reproducible credential recipe.
- High-risk operations are flagged and the inventory loads cleanly as the spec for the matrix command.