Check MaaS Admin Access¶
GET /api/v1/is-maas-admin
Checks whether the requesting user has MaaS admin privileges by performing a SelfSubjectAccessReview against the maasauthpolicies resource in the models-as-a-service namespace. Returns allowed: true only for users who can create MaaSAuthPolicy resources (i.e. cluster/MaaS admins). Token resolution priority:
Authorization: Bearer <token>— used by the ODH dashboard backend; correctly substituted with the impersonated user's token when the ODH dev impersonation feature (DEV_IMPERSONATE_USER) is active.x-forwarded-access-token— fallback for standalone federated dev mode where the rspack proxy injects the real user's token directly.
Authorization¶
Responses¶
| Status | Description | Response body |
|---|---|---|
200 OK | Access check result | object
|
400 Bad Request | Bad Request (missing authentication token) |
|
500 Internal Server Error | Internal Server Error |
|
200 OK response body
| Property | Type | Required | Description |
|---|---|---|---|
data | object | No | |
data.allowed | boolean | Yes | Whether the user has MaaS admin access |
Example request¶
Example response¶
200 OK, application/json