Set up initial RBAC rules in Ansible automation portal
After you install Ansible automation portal and synchronize it with Ansible Automation Platform, only users with Ansible Automation Platform administrator privileges can view the auto-generated templates.
You must configure initial Role-Based Access Control (RBAC) permissions to allow non-admin users to view and execute synchronized Ansible Automation Platform job templates.
Role-Based Access Control (RBAC) differs by template type:
-
- Auto-generated templates: Permissions are synchronized from Ansible Automation Platform. Users must have permissions on the underlying Ansible Automation Platform job template.
- Custom templates: Permissions must be explicitly configured within the Ansible Automation Portal. Users must also have permissions to run the associated job templates in Ansible Automation Platform.
Understand the permission model Copy linkLink copied!
Ansible automation portal and Ansible Automation Platform use separate but related permission systems. Ansible Automation Platform RBAC is the source of truth for synchronization scope and execution permissions.
Ansible automation portal RBAC:
- Controls which users can view templates in the Ansible automation portal catalog.
- Controls which users can access portal templates and submit jobs.
Ansible Automation Platform RBAC:
- Controls synchronization scope: Only Ansible Automation Platform job templates accessible by the configured Ansible Automation Platform token (ansible.rhaap.token) are synchronized to Ansible automation portal.
- Controls Ansible Automation Platform job template visibility and execution: Ansible Automation Platform permissions determine whether authenticated users can view and execute Ansible Automation Platform job templates in Ansible automation portal.
- Validates execution permissions: When a Ansible automation portal user executes a template, Ansible Automation Platform checks that user’s execute permissions before launching the job.
If a user can see a Ansible automation portal template in the catalog but lacks Ansible Automation Platform execution permissions for the associated Ansible Automation Platform job template in Ansible Automation Platform, the user cannot run the Ansible Automation Platform Job.
Configure RBAC for synchronization Copy linkLink copied!
Synchronization uses an Ansible Automation Platform token configured in the Ansible automation portal to determine which data to synchronize from Ansible Automation Platform.
Before you begin Copy linkLink copied!
- You have credentials for an Ansible Automation Platform administrator.
- Synchronization of Ansible Automation Platform Organization information from Ansible Automation Platform is complete.
- Users who execute Ansible Automation Platform job templates through Ansible automation portal must have job template Execute permissions assigned in Ansible Automation Platform for the respective Ansible Automation Platform job templates.
- The Allow external users to create OAuth2 tokens setting is enabled in the settings in Ansible Automation Platform.
About this task Copy linkLink copied!
By default, Ansible automation portal synchronizes Ansible Automation Platform Organization, Team, and User identity information. Ansible automation portal also synchronizes Ansible Automation Platform job template information accessible by the configured Ansible Automation Platform token.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
On successful completion, your new role is included in the All roles list when you select in the navigation pane in Ansible automation portal.
Configure conditional access Copy linkLink copied!
Optionally, you can configure conditional Ansible automation portal RBAC policies to filter role access to specific Ansible Automation Platform job templates by tag for specific Ansible Automation Platform teams or users.
Before you begin Copy linkLink copied!
- Ansible Automation Platform job templates must have Ansible Automation Platform labels applied and synchronized with Ansible automation portal.
- Users who execute Ansible Automation Platform job templates through Ansible automation portal must have Ansible Automation Platform job template Execute permissions assigned in Ansible Automation Platform for the respective Ansible Automation Platform job templates.
About this task Copy linkLink copied!
Ansible Automation Platform labels applied to Ansible Automation Platform job templates are synchronized to Ansible automation portal as tags and can be used for conditional access control.
Ansible Automation Platform labels are converted to lowercase tags with special characters replaced by hyphens (for example, the Ansible Automation Platform label Network-Automation becomes the tag network-automation).
Procedure Copy linkLink copied!
Results Copy linkLink copied!
On successful completion, your new role is included in the All roles list when you select in the navigation pane in Ansible automation portal.
- Log in to Ansible automation portal as a non-Ansible Automation Platform administrator user who is a member of a team you granted permissions to.
- Verify that the user can see auto-generated templates in Ansible automation portal.
- If you configured conditional access by tag, the user should see only templates with the specified tags.
- If you did not configure conditional access, the user should see all Ansible Automation Platform job templates for which they have job template Execute permissions in Ansible Automation Platform.
- To verify execution permissions work correctly, attempt to execute a template:
- If the user has job template Execute permissions in Ansible Automation Platform for the template, the user can view the template, and the job launches successfully.
Permissions reference for Ansible Automation Platform job template access Copy linkLink copied!
Permissions for Ansible Automation Platform job templates
| Permission | Resource type | Policy | Description |
|---|---|---|---|
| |
catalog-entity |
read |
Users can view synchronized Ansible Automation Platform job templates in the Ansible automation portal. |
| |
scaffolder-template |
read |
Users can read template parameters. |
| |
scaffolder-action |
use |
Users can execute actions through templates. |
| |
create |
Users can trigger the execution of Ansible Automation Platform job templates. |
|
| |
read |
Users can view task execution history and logs on the History page. |
|
| |
use |
Users can cancel currently running templates. |
Adjust synchronization frequency between Ansible Automation Platform and Ansible automation portal Copy linkLink copied!
The Helm chart defines how frequently users, teams and organization configuration information is synchronized from Ansible Automation Platform to Ansible automation portal.
About this task Copy linkLink copied!
The frequency is set by the catalog.providers.rhaap.schedule.frequency key. By default, the synchronization occurs hourly.
Procedure Copy linkLink copied!
catalog.providers.rhaap.schedule.frequency key in the Helm chart.
catalog:
...
providers:
rhaap:
'{{- include "catalog.providers.env" . }}':
schedule:
frequency: {minutes: 60}
timeout: {seconds: 30}
Increasing the synchronization frequency generates extra traffic.
Bear this in mind when deciding the frequency, particularly if you have a large number of users.

