Harness Role Assignments API

This contains APIs for CRUD on role assignments

Operations 10

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

POST /authz/api/roleassignments/delete/batch Delete several role assignments at once · Bulk Delete Role Assignment #
Ask an LLM
“Can I revoke a batch of role assignments in one request?”
“Is there a bulk way to remove role assignments by their identifiers?”
Tell an agent destructive · confirm first
Bulk delete role assignments in account {account}.
Remove a batch of role assignments from project {project}.
POST /authz/api/roleassignments/multi Create multiple role assignments in a scope · Create Role Assignments #
Ask an LLM
“How do I grant roles to many users or groups in one call?”
“What happens to duplicates when I create several role assignments together?”
Tell an agent
Create these role assignments in project {project}: {assignments}.
Grant multiple roles at once in account {account}: {assignments}.
GET /authz/api/roleassignments List role assignments in a scope · List Role Assignments #
Ask an LLM
“Who has which roles in my account?”
“Can I page through every role assignment in a project?”
Tell an agent
List role assignments in account {account}.
Show all role assignments in org {org}, project {project}.
POST /authz/api/roleassignments Assign a role to a principal · Create Role Assignment #
Ask an LLM
“How do I give a user a role on a resource group?”
“Can I create a role assignment that starts out disabled?”
Tell an agent
Assign role {role} on resource group {resource_group} to {principal}.
Grant {principal} the {role} role over {resource_group} in project {project}.
GET /authz/api/roleassignments/{identifier} Get one role assignment · Get Role Assignment #
Ask an LLM
“What role and resource group does a particular role assignment grant?”
“Can I look up a role assignment by its identifier?”
Tell an agent
Get role assignment {assignment}.
Show details of role assignment {assignment} in account {account}.
DELETE /authz/api/roleassignments/{identifier} Delete a role assignment · Delete Role Assignment #
Ask an LLM
“How do I revoke a single role assignment from a user?”
“Does deleting a role assignment remove access immediately?”
Tell an agent destructive · confirm first
Delete role assignment {assignment}.
Revoke role assignment {assignment} in project {project}.
POST /authz/api/roleassignments/filter Filter role assignments by role, principal or group · List Role Assignments by filter #
Ask an LLM
“Which users hold a specific role in this scope?”
“Can I list only disabled or Harness-managed role assignments?”
Tell an agent
List role assignments filtered to roles {roles} in account {account}.
Find role assignments for principals {principals}.
POST /authz/api/roleassignments/aggregate List role assignments with role and group metadata · List Aggregated Role Assignments by filter #
Ask an LLM
“Can I get role assignments together with the role and resource group details in one response?”
“What aggregated view of role assignments includes extra metadata?”
Tell an agent
Get aggregated role assignments with metadata for account {account}.
Show aggregate role assignments for resource groups {groups} with their role details.
POST /authz/api/roleassignments/v2/filter Filter role assignments across scopes · List Role Assignments by scope filter #
Ask an LLM
“Can I filter role assignments across several orgs or projects at once?”
“Which role assignments exist in a set of child scopes?”
Tell an agent
List role assignments across scopes {scopes}.
Filter role assignments by scopes {scopes} and principals {principals} in account {account}.
POST /authz/api/roleassignments/validate Check whether a proposed role assignment is valid · Validate Role Assignment #
Ask an LLM
“Will this role assignment be accepted before I actually create it?”
“Can I check that the principal, role and resource group in an assignment exist?”
Tell an agent
Validate role assignment {assignment} in account {account}.
Dry-run check {assignment}, validating the principal and role.

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-role-assignments-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-role-assignments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Role Assignments 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 (222 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-role-assignments-api-openapi.yml