Cloudinary Effective Policies API

View all the system and custom policies that are granted to a principal.

GitHub OpenAPI

Operations 1

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 /v2/accounts/{account_id}/permissions/policies/effective List effective permission policies for a principal · Get effective policies #
Ask an LLM
“Which roles and custom policies apply to a user in my account?”
“Can I see effective policies scoped to a single product environment?”
Tell an agent
Get effective policies for principal {principal_id} in account {account_id}.
Show effective policies for {principal_type} {principal_id} at scope {scope_type} {scope_id}.

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/cloudinary:cloudinary-effective-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

cloudinary-effective-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudinary Effective Policies API
  contact:
    name: Cloudinary Support
    email: support@cloudinary.com
    url: https://support.cloudinary.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://cloudinary.com/tou
  x-refined-note:
  - x-cld-module-context differs across the merged source definitions and was not carried
  - x-cld-module-name differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Effective Policies across 3 of this provider''s published API definitions: cloudinary-provisioning-schema.yml, cloudinary-permissions-openapi.yml, cloudinary-provisioning-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{region}.cloudinary.com
  description: Regional API endpoints for optimal performance.
  variables:
    region:
      default: api
      description: Regional endpoint selection
      enum:
      - api
      - api-eu
      - api-ap
- url: https://{host}
  description: Custom domains for enterprise deployments.
  variables:
    host:
      default: api.cloudinary.com
      description: API host domain.
security:
- basicAuth: []
tags:
- name: Effective Policies
  description: View all the system and custom policies that are granted to a principal.
paths:
  /v2/accounts/{account_id}/permissions/policies/effective:
    parameters:
    - $ref: '#/components/parameters/AccountIdParam'
    get:
      x-speakeasy-group: policies.effective
      x-speakeasy-name-override: list
      x-speakeasy-mcp:
        name: list-effective-policies
        scopes:
        - admin
        title: List Effective Policies
        readOnlyHint: true
        idempotentHint: true
      summary: Get effective policies
      description: 'Retrieve all roles (along with their system permission policies) associated with principals, and all custom permission policies directly added to principals, all within a specified scope.


        Optionally specify a principal to only include roles and policies associated with that principal.'
      operationId: getEffectivePolicies
      tags:
      - Effective Policies
      parameters:
      - $ref: '#/components/parameters/ScopeTypeParam'
      - $ref: '#/components/parameters/ScopeIdParam'
      - $ref: '#/components/parameters/PrincipalTypeParam'
      - $ref: '#/components/parameters/PrincipalIdParam'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EffectivePoliciesResponse'
              examples:
                EffectivePoliciesExample:
                  $ref: '#/components/examples/EffectivePoliciesExample'
        '400':
          description: Invalid field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PermissionsErrorResponse'
              examples:
                invalidFieldErrorExample:
                  $ref: '#/components/examples/InvalidFieldErrorExample'
        '401':
          description: Authorization required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PermissionsErrorResponse'
              examples:
                authorizationErrorExample:
                  $ref: '#/components/examples/AuthorizationErrorExample'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PermissionsErrorResponse'
              examples:
                authorizationErrorExample:
                  $ref: '#/components/examples/ForbiddenErrorExample'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PermissionsErrorResponse'
              examples:
                policyNotFoundErrorExample:
                  $ref: '#/components/examples/ScopeNotFoundErrorExample'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PermissionsErrorResponse'
              examples:
                internalServerErrorExample:
                  $ref: '#/components/examples/InternalServerErrorExample'
    servers:
    - url: https://{region}.cloudinary.com
      description: Regional API endpoints for optimal performance.
      variables:
        region:
          default: api
          description: Regional endpoint selection
          enum:
          - api
          - api-eu
          - api-ap
    - url: https://{host}
      description: Custom domains for enterprise deployments.
      variables:
        host:
          default: api.cloudinary.com
          description: API host domain.
components:
  schemas:
    PermissionsError:
      type: object
      properties:
        category:
          type: string
          description: A classification of the error, indicating the general area or type of problem.
        code:
          type: string
          description: A specific error code that uniquely identifies the error condition.
        message:
          type: string
          description: A human-readable message providing a brief explanation of the error and its cause.
        details:
          type: object
          description: Additional contextual information about the error, which may include relevant data.
    EffectivePolicy:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the permission policy.
          example: cld::global::api_keys::manage
        policy_statement:
          type: string
          description: A Cedar statement that permits or forbids a principal to perform an action on a resource. Refer to the [Permissions API guide](permissions_api_guide) for more information.
          example: permit (principal, action, resource == Cloudinary::Feature::"cld::global::api_keys::view");
    EffectivePoliciesResponse:
      type: object
      properties:
        data:
          allOf:
          - type: object
            properties:
              principals:
                type: array
                items:
                  $ref: '#/components/schemas/PrincipalRole'
          - type: object
            properties:
              custom_policies:
                type: array
                items:
                  $ref: '#/components/schemas/EffectivePolicy'
    PermissionsErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/PermissionsError'
    ScopeTypeEnum:
      type: string
      description: Specifies where the role/policy is applied, either at the account level or within product environments.
      enum:
      - account
      - prodenv
      example: prodenv
    PrincipalTypeEnum:
      type: string
      description: The type of principal.
      enum:
      - user
      - group
      - apiKey
      - provisioningKey
      example: user
    PrincipalRole:
      type: object
      properties:
        principal_type:
          type: string
          description: 'The type of principal you want to retrieve roles or permission policies for.


            - user


            - group


            - apiKey


            - provisioningKey

            '
          example: user
        principal_id:
          type: string
          description: The unique identifier of the principal.
          example: 1234abc
        roles:
          description: A list of all the roles that are added to this principal.
          type: array
          items:
            $ref: '#/components/schemas/EffectiveRole'
    EffectiveRole:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the role.
          example: custom::global::admin
        system_policies:
          description: A list of all the predefined permission policies that are associated with this role.
          type: array
          items:
            $ref: '#/components/schemas/EffectivePolicy'
    Error:
      type: object
      properties:
        category:
          type: string
          description: A classification of the error, indicating the general area or type of problem.
        code:
          type: string
          description: A specific error code that uniquely identifies the error condition.
        message:
          type: string
          description: A human-readable message providing a brief explanation of the error and its cause.
        details:
          type: object
          description: Additional contextual information about the error, which may include relevant data.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/Error'
  parameters:
    ScopeTypeParam:
      name: scope_type
      description: Specifies the level for retrieving policies or roles, either at the account level or within product environments.
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/ScopeTypeEnum'
    PrincipalTypeParam:
      name: principal_type
      description: The type of principal you want to retrieve roles or permission policies for.
      in: query
      required: false
      schema:
        $ref: '#/components/schemas/PrincipalTypeEnum'
    PrincipalIdParam:
      name: principal_id
      description: 'The unique identifier of the principal you want to retrieve roles or permission policies for.


        **Notes:**


        * This parameter is mandatory if `principal_type` is provided.

        * Ensure the specified ID belongs to a principle of the specified type.

        '
      in: query
      schema:
        type: string
    ScopeIdParam:
      name: scope_id
      description: 'The ID of a specific product environment where the policy is applied. This parameter is only relevant if `scope_type` is "prodenv".

        - <product_environment_id>

        '
      in: query
      required: false
      schema:
        type: string
    AccountIdParam:
      name: account_id
      description: Account ID
      in: path
      required: true
      schema:
        type: string
      x-speakeasy-globals-hidden: true
  examples:
    EffectivePoliciesExample:
      summary: Get effective policies example
      value:
        data:
          principals:
          - principal_type: user
            principal_id: 1234abc
            roles:
            - id: upload_manager_12334565
              system_policies:
              - id: cld::policy::global::upload_presets::manage
                policy_statement: permit (principal == Cloudinary::user::"1234abc", action == Cloudinary::Action::"read", resource is Cloudinary::UploadPreset);
              - id: cld::policy::global::folder_and_asset_management::create_asset
                policy_statement: 'permit(principal == Cloudinary::user::\"1234abc\", action, resource is Cloudinary::UploadPreset);

                  permit(principal == Cloudinary::user::\"1234abc\", action, resource is Cloudinary::UploadMapping);

                  permit(principal == Cloudinary::user::\"1234abc\", action == Cloudinary::Action::"update_settings", resource is Cloudinary::ProductEnvironment);

                  permit(principal == Cloudinary::user::\"1234abc\", action, resource == Cloudinary::Feature::"cld::global::upload_settings::manage");

                  permit(principal == Cloudinary::user::\"1234abc\", action, resource == Cloudinary::Feature::"cld::global::upload_settings::access");

                  '
            - id: cld::role::prodenv::reports
              system_policies:
              - id: cld::policy::global::reports::delivery::view
                policy_statement: 'permit(principal == Cloudinary::user::\"1234abc\", action, resource == Cloudinary::Feature::"cld::global::reports::delivery::view");

                  permit(principal == Cloudinary::user::\"1234abc\", action == Cloudinary::Action::"read", resource is Cloudinary::Report) when {resource.type == "delivery"};

                  '
              - id: cld::policy::global::reports::errors::view
                policy_statement: permit (pprincipal == Cloudinary::user::"1234abc", action, resource == Cloudinary::Feature::"cld::global::reports::errors::view");
              - id: cld::policy::global::reports::usage::view
                policy_statement: 'permit (principal == Cloudinary::user::\"1234abc\", action, resource == Cloudinary::Feature::"cld::global::reports::usage::view");

                  permit (principal == Cloudinary::user::\"1234abc\", action == Cloudinary::Action::"read", resource is Cloudinary::Report) when { resource.type == "env_usage" };

                  '
          custom_policies:
          - id: 12jf789l12hwiuencl7aaqey
            policy_statement: permit(principal == Cloudinary::user::"1234abc", action == Cloudinary::Action::"read", resource is Cloudinary::Folder) when {resource.ancestor_ids.contains("asdfjkl12347890")};
          - id: 12jf789l12hwiuencl7aaqey
            policy_statement: permit(principal == Cloudinary::user::"1234abc", action == Cloudinary::Action::"update", resource is Cloudinary::Folder) when {resource.ancestor_ids.contains("asdfjkl12347890")};
    ForbiddenErrorExample:
      summary: Not allowed
      value:
        error:
          category: user_error
          code: ACCOUNTS_00006
          message: not allowed
    ScopeNotFoundErrorExample:
      summary: Scope not found
      value:
        error:
          category: server_error
          code: ACCOUNTS_00003
          message: not found
          details:
            fields:
            - scope_id: 55559999333hhx
    InvalidFieldErrorExample:
      summary: Invalid field
      value:
        error:
          category: user_error
          code: ACCOUNTS_00005
          message: invalid request
          details:
            fields:
            - scope_type: account
    AuthorizationErrorExample:
      summary: Authorization required
      value:
        error:
          category: user_error
          code: ACCOUNTS_00006
          message: invalid credentials
    InternalServerErrorExample:
      summary: Internal server error
      value:
        error:
          category: server_error
          code: ACCOUNTS_00001
          message: something went wrong
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
x-refined-from:
- cloudinary-provisioning-schema.yml
- cloudinary-permissions-openapi.yml
- cloudinary-provisioning-openapi.yml