Harness Roles API

This contains APIs for CRUD on roles

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /authz/api/roles List roles in a scope · List Roles #
Ask an LLM
“What roles exist in my Harness project?”
“Can I list only Harness-managed roles, or only custom ones?”
Tell an agent
List roles in project {projectIdentifier}.
Show roles where harnessManaged is {harnessManaged}.
POST /authz/api/roles Create a custom role · Create Role #
Ask an LLM
“How do I create a custom role with specific permissions?”
“Can a custom role be limited to certain scope levels?”
Tell an agent
Create a custom role {name} with id {identifier} and permissions {permissions}.
Add role {identifier} named {name} in org {orgIdentifier}.
GET /authz/api/roles/{identifier} Get a role and its permissions · Get Role #
Ask an LLM
“Which permissions does a particular role grant?”
“Can I look up one role by identifier?”
Tell an agent
Show role {identifier}.
Get the permissions in role {identifier} for project {projectIdentifier}.
PUT /authz/api/roles/{identifier} Update a custom role · Update Role #
Ask an LLM
“How do I add or remove permissions on a custom role?”
“Can Harness-managed roles be edited, or only custom ones?”
Tell an agent
Set role {identifier}'s permissions to {permissions}, keeping name {name}.
Rename custom role {identifier} to {name}.
DELETE /authz/api/roles/{identifier} Delete a custom role · Delete Role #
Ask an LLM
“How do I delete a custom role?”
“Can I remove a custom role from just one org?”
Tell an agent destructive · confirm first
Delete custom role {identifier}.
Remove role {identifier} from org {orgIdentifier}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harness:harness-roles-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harness-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Roles API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (86 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-roles-api-openapi.yml