List permission sets
GET/permission-sets
Returns one page of the permission sets defined for your tenant, ordered by name.
A permission set is Prism's template for an AWS role: a name, a session duration, and the policies that role should carry. Defining one changes nothing in AWS; the role is only cut into an account when the permission set is assigned to a user or group for that account.
List items are summaries, not the full resource. Each entry reports
how many policies of each kind are attached
(managed_policies_count, inline_policies_count, and so on) rather
than the policies themselves, which keeps a page small. Fetch
GET /permission-sets/{id} when you need the actual ARNs, inline policy
documents or attribute map.
One inconsistency to be ready for: the keys of the wrapper object are
camelCase (permissionSets, pageSize, totalPages) while the keys
inside each item are snake_case (session_duration,
managed_policies_count). Both spellings below are exactly what goes
over the wire.
Request
Responses
- 200
- 401
- 403
- 404
- 500
One page of permission set summaries. An empty page is still a 200.
Authentication failed: the X-API-Token header was missing, malformed,
expired or not recognised.
This response is text/plain, not JSON. It is written by
http.Error in the authentication middleware, which runs before any
handler and therefore before anything that would build a JSON envelope.
A client that unconditionally JSON-parses response bodies will fail on
this one, so check the status code first.
The token is valid, but it is not allowed to act on this tenant.
An API token is minted inside one tenant and stays bound to it for life.
Sending it to a path whose tenant segment names a different tenant is
refused here, in middleware, before the operation runs, so this says
nothing about the resource you asked for, only about which tenant the
path named. Check the tenant server variable against the console the
token was created in.
No tenant matches the tenant segment of the request path. Check the
tenant server variable rather than the query.
The permission sets could not be read from the database.