Set up permissions for custom self-service templates
Custom self-service templates that you set up in self-service automation portal use a different set of RBAC rules than the RBAC rules for auto-generated self-service templates that are synchronized from Ansible Automation Platform.
- Auto-generated self-service templates: The RBAC settings for these templates are synchronized from Ansible Automation Platform.
- Custom self-service templates: You must set up RBAC for these templates in self-service automation portal.
Set up RBAC for custom self-service templates Copy linkLink copied!
By default, Ansible Automation Platform administrators can define self-service automation portal RBAC roles.
Before you begin Copy linkLink copied!
- You have created a user, for example
example-user. - You have added this user as a member of a team, for example
example-team.
About this task Copy linkLink copied!
This procedure describes how to create a role in self-service automation portal that allows only a selected team to view and execute particular custom self-service templates.
Custom self-service templates in self-service automation portal are associated with job templates in Ansible Automation Platform. This association is set in the steps.actions section of the YAML file for the custom self-service template.
If you assign permissions to a particular team to launch a custom self-service template from self-service automation portal, then you must make sure that that team has permission to run the associated job templates in Ansible Automation Platform.
Procedure Copy linkLink copied!
Verify RBAC Copy linkLink copied!
This procedure describes how to verify that the role you set up is working correctly.
Procedure Copy linkLink copied!
- Verify that users with permissions can use a template:
- Log in to self-service automation portal as a user who is a member of a team that has been enabled to use a role.
- Verify that RBAC is applied and that the user can use the templates that you enabled for the role.
- Log out of self-service automation portal.
- Verify that users without permissions can not see or use a template:
- Log in to self-service automation portal as a user who is not a member of the new team that has been enabled to use the role.
- Verify that RBAC is applied and that the user cannot use the templates that you enabled for the role.
- Log out of self-service automation portal.
Deregister custom self-service templates Copy linkLink copied!
You can deregister custom self-service templates. Deregistering templates deletes them from the Templates view in the self-service automation portal console.
Procedure Copy linkLink copied!
- In a browser, log in to self-service automation portal as a user with administrative privileges.
- Select Templates to display the self-service templates.
- For each custom self-service template that you want to delete, execute the following steps:
- Click a custom self-service template to open the Template detail view. The navigation bar contains the Unregister Template option.
- Click Unregister Template.

- In the dialog, confirm that you want to deregister the template.
- Click Delete Entity to unregister the template.
Results Copy linkLink copied!
In a browser, navigate to the Templates view for your self-service automation portal instance. Verify that the custom self-service templates that you deregistered have been deleted.