Loading...
Loading...
Manage Harness RBAC roles, role assignments, permissions, and resource groups via MCP v2 tools. List, create, update, and delete custom roles. View role assignments and permissions for users, groups, and service accounts. Use when asked to manage access control, assign roles, check permissions, create custom roles, review RBAC configuration, onboard users, or audit access. Trigger phrases: manage roles, RBAC, role assignment, user permissions, access control, custom role, resource group, who has access, grant access, revoke access.
npx skill4agent add harness/harness-skills manage-roles| Tool | Resource Type | Operations |
|---|---|---|
| | List all roles |
| | Get role details |
| | Create custom role |
| | Update custom role |
| | Delete custom role |
| | List role assignments |
| | Get assignment details |
| | List available permissions |
| | Get permission details |
| | List resource groups |
| | Get resource group details |
| | Discover role schema |
| -- | Search across role-related resources |
harness_list(
resource_type="role",
org_id="<org>", # optional
project_id="<project>", # optional
search_term="<keyword>" # optional
)harness_list(
resource_type="role_assignment",
org_id="<org>",
project_id="<project>"
)harness_list(resource_type="permission")harness_create(
resource_type="role",
org_id="<org>",
project_id="<project>",
body={
"identifier": "custom_deployer",
"name": "Custom Deployer",
"description": "Can execute pipelines and view services",
"permissions": [
"core_pipeline_execute",
"core_pipeline_view",
"core_service_view",
"core_environment_view"
]
}
)^[a-zA-Z_][0-9a-zA-Z_]{0,127}$harness_list(resource_type="resource_group", org_id="<org>", project_id="<project>")/manage-roles
Show me all roles available in the payments project/manage-roles
List all role assignments with admin privileges in the default org/manage-roles
Create a custom role called "release-manager" that can execute pipelines,
view services and environments, but cannot edit anything/manage-roles
What roles does jane.smith@company.com have across all projects?/manage-roles
Show me all resource groups and what they include{role}_{principal}deployer_ops_team| Error | Cause | Solution |
|---|---|---|
| Role not found | Invalid role identifier | Built-in roles start with |
| Resource group not found | Invalid resource group | Check |
| Principal not found | User/group/SA does not exist | Verify the principal exists before assigning |
| Duplicate identifier | Role with same ID exists | Use a unique identifier or update the existing role |
| Permission denied | Caller lacks RBAC management permissions | Need |
harness_getdisabled: true_view_editcore_role_editcore_roleassignment_edit