Red Hat Ansible Automation Platform Role User Assignments API

The role_user_assignments API from Red Hat Ansible Automation Platform — 6 operation(s) for role_user_assignments.

Business capability
Identity & Access Management BC-620.20

Operations 12

GET /api/v2/role_user_assignments/ Role user assignments list #
POST /api/v2/role_user_assignments/ Role user assignments create #
GET /api/v2/role_user_assignments/{id}/ Role user assignments retrieve #
DELETE /api/v2/role_user_assignments/{id}/ Role user assignments destroy #
GET /role_user_assignments/ Role user assignments list #
POST /role_user_assignments/ Role user assignments create #
GET /role_user_assignments/{id}/ Role user assignments retrieve #
DELETE /role_user_assignments/{id}/ Role user assignments destroy #
GET /api/gateway/v1/role_user_assignments/ Role user assignments list #
POST /api/gateway/v1/role_user_assignments/ Role user assignments create #
GET /api/gateway/v1/role_user_assignments/{id}/ Role user assignments retrieve #
DELETE /api/gateway/v1/role_user_assignments/{id}/ Role user assignments destroy #

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/red-hat-ansible-automation-platform-role-user-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

red-hat-ansible-automation-platform-role-user-assignments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Red Hat Ansible Automation Platform Role User Assignments…
  version: '1.0'
  description: 'Operations tagged role_user_assignments across 3 of this provider''s published API definitions: red-hat-ansible-automation-platform-automation-controller-openapi.json, red-hat-ansible-automation-platform-event-driven-ansible-openapi.json, red-hat-ansible-automation-platform-platform-gateway-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: /api/eda/v1
tags:
- name: role_user_assignments
paths:
  /api/v2/role_user_assignments/:
    get:
      operationId: role_user_assignments_list
      parameters:
      - in: query
        name: order
        schema:
          type: string
        description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
      - in: query
        name: order_by
        schema:
          type: string
        description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - in: query
        name: role_level
        schema:
          type: string
        description: Filter by role level for RBAC
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      - in: query
        name: type
        schema:
          type: string
        description: Filter by object type. Supports comma-separated values for multiple types.
      tags:
      - role_user_assignments
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRoleUserAssignmentList'
          description: ''
      x-ai-description: List RBAC role grants assigning permissions to users for specific resources
      summary: Role user assignments list
      x-summary-source: derived
    post:
      operationId: role_user_assignments_create
      description: Give a user permission to a resource, an organization, or globally (when allowed). Must specify 'role_definition' and exactly one of 'user' or 'user_ansible_id'. Can specify at most one of 'object_id' or 'object_ansible_id' (omit both for global roles). The content_type of the role definition and the provided object_id are used to look up the resource. After creation, the assignment cannot be edited, but can be deleted to remove those permissions.
      tags:
      - role_user_assignments
      requestBody:
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/RoleUserAssignment'
              - description: 'Must provide exactly one of: user (integer ID) or user_ansible_id (UUID). Mutual exclusivity enforced by server validation.'
                properties:
                  user:
                    type:
                    - integer
                    - 'null'
                    description: ID of the user to assign the role to. Mutually exclusive with user_ansible_id.
                  user_ansible_id:
                    type:
                    - string
                    - 'null'
                    format: uuid
                    description: Ansible ID of the user to assign the role to. Mutually exclusive with user.
              - description: 'Can provide at most one of: object_id or object_ansible_id. Omit both for global role assignments. Mutual exclusivity enforced by server validation.'
                properties:
                  object_id:
                    oneOf:
                    - type: integer
                    - type: string
                      format: uuid
                    description: ID of the resource object. Mutually exclusive with object_ansible_id.
                  object_ansible_id:
                    type:
                    - string
                    - 'null'
                    format: uuid
                    description: Ansible ID of the resource object. Mutually exclusive with object_id.
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleUserAssignment'
          description: ''
      x-ai-description: Create a RBAC role grants assigning permissions to user for specific resources
      summary: Role user assignments create
      x-summary-source: derived
  /api/v2/role_user_assignments/{id}/:
    get:
      operationId: role_user_assignments_retrieve
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this role user assignment.
        required: true
      tags:
      - role_user_assignments
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleUserAssignment'
          description: ''
      x-ai-description: Retrieve a RBAC role grants assigning permissions to user for specific resources
      summary: Role user assignments retrieve
      x-summary-source: derived
    delete:
      operationId: role_user_assignments_destroy
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this role user assignment.
        required: true
      tags:
      - role_user_assignments
      responses:
        '204':
          description: No response body
      x-ai-description: Delete a RBAC role grants assigning permissions to user for specific resources
      summary: Role user assignments destroy
      x-summary-source: derived
  /role_user_assignments/:
    get:
      operationId: getRoleUserAssignments
      parameters:
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      tags:
      - role_user_assignments
      security:
      - EDAJWTAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRoleUserAssignmentList_2'
          description: ''
      summary: Role user assignments list
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_list
    post:
      operationId: postRoleUserAssignments
      description: Create a RoleUserAssignment.
      tags:
      - role_user_assignments
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleUserAssignmentCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/RoleUserAssignmentCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/RoleUserAssignmentCreate'
        required: true
      security:
      - EDAJWTAuthentication: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleUserAssignment_2'
          description: Return a created RoleUserAssignment.
      summary: Role user assignments create
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_create
    servers:
    - url: /api/eda/v1
  /role_user_assignments/{id}/:
    get:
      operationId: getRoleUserAssignmentsById
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this role user assignment.
        required: true
      tags:
      - role_user_assignments
      security:
      - EDAJWTAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleUserAssignment_2'
          description: ''
      summary: Role user assignments retrieve
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_retrieve
    delete:
      operationId: deleteRoleUserAssignmentsById
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this role user assignment.
        required: true
      tags:
      - role_user_assignments
      security:
      - EDAJWTAuthentication: []
      responses:
        '204':
          description: No response body
      summary: Role user assignments destroy
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_destroy
    servers:
    - url: /api/eda/v1
  /api/gateway/v1/role_user_assignments/:
    get:
      operationId: getApiGatewayV1RoleUserAssignments
      parameters:
      - in: query
        name: order
        schema:
          type: string
        description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
      - in: query
        name: order_by
        schema:
          type: string
        description: Order results by field name. Prefix with '-' for descending order. Supports comma-separated values for multiple fields.
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - in: query
        name: role_level
        schema:
          type: string
        description: Filter by role level for RBAC
      - name: search
        required: false
        in: query
        description: A search term.
        schema:
          type: string
      - in: query
        name: type
        schema:
          type: string
        description: Filter by object type. Supports comma-separated values for multiple types.
      tags:
      - role_user_assignments
      security:
      - OAuth2_Authentication: []
      - SessionAuthentication: []
      - Basic_Authentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRoleUserAssignmentList'
          description: ''
      x-ai-description: List RBAC role grants assigning permissions to users for specific resources
      summary: Role user assignments list
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_list
    post:
      operationId: postApiGatewayV1RoleUserAssignments
      description: Give a user permission to a resource, an organization, or globally (when allowed). Must specify 'role_definition' and exactly one of 'user' or 'user_ansible_id'. Can specify at most one of 'object_id' or 'object_ansible_id' (omit both for global roles). The content_type of the role definition and the provided object_id are used to look up the resource. After creation, the assignment cannot be edited, but can be deleted to remove those permissions.
      tags:
      - role_user_assignments
      requestBody:
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/RoleUserAssignment'
              - description: 'Must provide exactly one of: user (integer ID) or user_ansible_id (UUID). Mutual exclusivity enforced by server validation.'
                properties:
                  user:
                    type:
                    - integer
                    - 'null'
                    description: ID of the user to assign the role to. Mutually exclusive with user_ansible_id.
                  user_ansible_id:
                    type:
                    - string
                    - 'null'
                    format: uuid
                    description: Ansible ID of the user to assign the role to. Mutually exclusive with user.
              - description: 'Can provide at most one of: object_id or object_ansible_id. Omit both for global role assignments. Mutual exclusivity enforced by server validation.'
                properties:
                  object_id:
                    oneOf:
                    - type: integer
                    - type: string
                      format: uuid
                    description: ID of the resource object. Mutually exclusive with object_ansible_id.
                  object_ansible_id:
                    type:
                    - string
                    - 'null'
                    format: uuid
                    description: Ansible ID of the resource object. Mutually exclusive with object_id.
      security:
      - OAuth2_Authentication: []
      - SessionAuthentication: []
      - Basic_Authentication: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleUserAssignment'
          description: ''
      x-ai-description: Create a RBAC role grants assigning permissions to user for specific resources
      summary: Role user assignments create
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_create
  /api/gateway/v1/role_user_assignments/{id}/:
    get:
      operationId: getApiGatewayV1RoleUserAssignmentsById
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this role user assignment.
        required: true
      tags:
      - role_user_assignments
      security:
      - OAuth2_Authentication: []
      - SessionAuthentication: []
      - Basic_Authentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RoleUserAssignment'
          description: ''
      x-ai-description: Retrieve a RBAC role grants assigning permissions to user for specific resources
      summary: Role user assignments retrieve
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_retrieve
    delete:
      operationId: deleteApiGatewayV1RoleUserAssignmentsById
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this role user assignment.
        required: true
      tags:
      - role_user_assignments
      security:
      - OAuth2_Authentication: []
      - SessionAuthentication: []
      - Basic_Authentication: []
      responses:
        '204':
          description: No response body
      x-ai-description: Delete a RBAC role grants assigning permissions to user for specific resources
      summary: Role user assignments destroy
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: role_user_assignments_destroy
components:
  schemas:
    PaginatedRoleUserAssignmentList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/RoleUserAssignment'
    RoleUserAssignment:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        url:
          type: string
          readOnly: true
        related:
          type: object
          additionalProperties:
            type: string
          readOnly: true
        summary_fields:
          type: object
          additionalProperties:
            type: object
            additionalProperties: {}
          readOnly: true
        created:
          type: string
          format: date-time
          readOnly: true
          description: The date/time this resource was created.
        created_by:
          type:
          - integer
          - 'null'
          readOnly: true
          description: The user who created this resource.
        content_type:
          type: string
          description: String to use for references to this type from other models in the API.
          readOnly: true
        object_id:
          type:
          - string
          - 'null'
          description: The primary key of the object this assignment applies to; null value indicates system-wide assignment.
        object_ansible_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The resource id of the object this role applies to. An alternative to the object_id field.
        role_definition:
          type: integer
          description: The role definition which defines permissions conveyed by this assignment.
        user:
          type:
          - integer
          - 'null'
        user_ansible_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The resource ID of the user who will receive permissions from this assignment. An alternative to user field.
      required:
      - role_definition
    PaginatedRoleUserAssignmentList_2:
      type: object
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: /eda/api/v1/example/?page=51&page_size=100
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: /eda/api/v1/example/?page=49&page_size=100
        page_size:
          type:
          - integer
          - 'null'
          example: 100
        page:
          type:
          - integer
          - 'null'
          example: 50
        results:
          type: array
          items:
            $ref: '#/components/schemas/RoleUserAssignment_2'
    RoleUserAssignmentCreate:
      type: object
      properties:
        object_id:
          type:
          - string
          - 'null'
          description: The primary key of the object this assignment applies to; null value indicates system-wide assignment.
        object_ansible_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The resource id of the object this role applies to. An alternative to the object_id field.
        role_definition:
          type: integer
          description: The role definition which defines permissions conveyed by this assignment.
        user:
          type:
          - integer
          - 'null'
        user_ansible_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The resource ID of the user who will receive permissions from this assignment. An alternative to user field.
      required:
      - role_definition
    RoleUserAssignment_2:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        url:
          type: string
          readOnly: true
        related:
          type: object
          additionalProperties:
            type: string
          readOnly: true
        summary_fields:
          type: object
          additionalProperties:
            type: object
            additionalProperties: true
          readOnly: true
        created:
          type: string
          format: date-time
          readOnly: true
          description: The date/time this resource was created.
        created_by:
          type:
          - integer
          - 'null'
          readOnly: true
          description: The user who created this resource.
        content_type:
          type: string
          description: String to use for references to this type from other models in the API.
          readOnly: true
        object_id:
          type:
          - string
          - 'null'
          description: The primary key of the object this assignment applies to; null value indicates system-wide assignment.
        object_ansible_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The resource id of the object this role applies to. An alternative to the object_id field.
        role_definition:
          type: integer
          description: The role definition which defines permissions conveyed by this assignment.
        user:
          type:
          - integer
          - 'null'
        user_ansible_id:
          type:
          - string
          - 'null'
          format: uuid
          description: The resource ID of the user who will receive permissions from this assignment. An alternative to user field.
      required:
      - content_type
      - created
      - created_by
      - id
      - related
      - role_definition
      - summary_fields
      - url
  securitySchemes:
    EDAJWTAuthentication:
      type: apiKey
      name: X-DAB-JW-TOKEN
      in: header
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid
    Basic_Authentication:
      type: http
      scheme: basic
    OAuth2_Authentication:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: /o/authorize/
          tokenUrl: /o/token/
          scopes:
            read: Read access to resources
            write: Write access to resources (includes read)
        password:
          tokenUrl: /o/token/
          scopes:
            read: Read access to resources
            write: Write access to resources (includes read)
    SessionAuthentication:
      type: apiKey
      in: cookie
      name: gateway_sessionid
x-refined-from:
- red-hat-ansible-automation-platform-automation-controller-openapi.json
- red-hat-ansible-automation-platform-event-driven-ansible-openapi.json
- red-hat-ansible-automation-platform-platform-gateway-openapi.json