Permissions

This contains the APIs related to permissions

Get all permissions in a scope or all permissions in the system.

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string

Account Identifier for the Entity.

orgIdentifier
string

Organization Identifier for the Entity.

projectIdentifier
string

Project Identifier for the Entity.

scopeFilterDisabled
boolean

This is to enable or disable filtering by scope. The default value is false. If the value is true, all the permissions in the system are fetched.

Responses
400

Bad Request

500

Internal server error

default

List of all permissions

get/authz/api/permissions
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/authz/api/permissions?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&scopeFilterDisabled=true' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Get all resource types for permissions in a scope or in the system.

Request
Security:
ApiKey (readwrite)
query Parameters
accountIdentifier
string

Account Identifier for the Entity.

orgIdentifier
string

Organization Identifier for the Entity.

projectIdentifier
string

Project Identifier for the Entity.

scopeFilterDisabled
boolean

This is to enable or disable filtering by scope. The default value is false. If the value is true, all the permissions in the system are fetched.

Responses
400

Bad Request

500

Internal server error

default

List of resource types

get/authz/api/permissions/resourcetypes
Request samples
curl -i -X GET \
  'https://app.harness.io/gateway/authz/api/permissions/resourcetypes?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string&scopeFilterDisabled=true' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}