Chapter 4. Configuring template RBAC and display logic


Template definitions in the YAML file control where templates appear in the self-service automation portal and how to manage permissions.

Note

Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

4.1. Role-based access control (RBAC)

The template type determines where you must configure user permissions.

The spec.type value in the template YAML determines which portal page displays the template.

  • No spec.type defined: The template appears on the Ansible Automation Platform templates page for all users.
  • spec.type: execution-environment: The template appears only on the EE definition files page.

4.3. Example: Auto-generated template

The following YAML example uses the spec.type field to restrict the template view to the EE definition files page.

apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  name: ansible-execution-environment-template
  title: EE template
  description: Ansible Execution Environment Template
  tags:
    - ansible
    - execution-environment
    # ...
spec:
  type: execution-environment  # Restricts the template view to the Execution Environment page.
  parameters:
    # ...
Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top