Skip to main content
Unary · Groups Creates a role assignment for a group on a resource. Use this method to:
  • Assign specific roles to groups on runners, projects, or environments
  • Grant group-based access to resources

Examples

  • Assign admin role on a runner: Grants the group admin access to a runner.
  • Assign user role on a project: Grants the group user access to a project.

Authorization

Requires admin role on the specific resource.

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.CreateRoleAssignmentRequest CreateRoleAssignment messages

Response

gitpod.v1.CreateRoleAssignmentResponse
RoleAssignment represents a role assigned to a group on a specific resourcegitpod.v1.RoleAssignment
ResourceRole represents roles that can be assigned to groups on resources These map directly to the roles defined in backend/db/rule/rbac/role/role.go