Create an access rule for authenticated users/service accounts
Creates an access rule bound to every authenticated user and service account for the given role and scope.
Authentication
AuthorizationBearer
Bearer authentication
Request
This endpoint expects an object.
roleId
The ID of the role to assign.
scopeId
The unique identifier of the scope.
scopeType
The type of scope the access rule applies to.
Allowed values:
clusterId
The id of the cluster.
Response
Created
subjectId
The unique identifier of the subject (e.g., user, group, or app).
roleId
The numeric ID of the assigned role.
scopeId
The unique identifier of the scope.
scopeType
Allowed values:
subjectType
Subject type enum for access rule responses. Extends SubjectType with the built-in all-authenticated-users subject, which applies to every authenticated user and service account.
Note: The ‘app’ subject type is DEPRECATED. Please use ‘service-account’ instead for service accounts.
Allowed values:
roleName
The name of the assigned role (e.g., admin, viewer).
scopeName
Human-readable name of the scope (e.g., tenant-x).
id
The ID of the access rule entry.
createdAt
The timestamp for when the access rule was created.
updatedAt
The timestamp for the last time the access rule was updated.
tenantId
The id of the tenant.
createdBy
Identifier of the user who created the access rule.
clusterId
The id of the cluster.
deletedAt
The timestamp indicating when the access rule was deleted.
status
Status of the Access Rule in the cluster. Available only for clusters of version 2.22.0 or above.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error