Skip to content
Ona Docs

DeleteRoleAssignment

groups.role_assignments.delete(RoleAssignmentDeleteParams**kwargs) -> object
POST/gitpod.v1.GroupService/DeleteRoleAssignment

Deletes a role assignment.

Use this method to:

  • Remove group access to resources
  • Revoke role-based permissions

Examples

  • Delete a role assignment:

    Removes a role assignment by its ID.

    assignmentId: "a1b2c3d4-5678-90ab-cdef-1234567890ab"

Authorization

Requires admin role on the specific resource.

ParametersExpand Collapse
assignment_id: Optional[str]
formatuuid
ReturnsExpand Collapse
object

DeleteRoleAssignment

import os
from gitpod import Gitpod

client = Gitpod(
    bearer_token=os.environ.get("GITPOD_API_KEY"),  # This is the default and can be omitted
)
role_assignment = client.groups.role_assignments.delete(
    assignment_id="a1b2c3d4-5678-90ab-cdef-1234567890ab",
)
print(role_assignment)
{}
Returns Examples
{}