# Question about Job templates access roles teams

**URL:** <https://forum.ansible.com/t/question-about-job-templates-access-roles-teams/37545>\
**Category:** AWX Project\
**Created:** [January 11, 2023, 7:58pm UTC](https://forum.ansible.com/t/question-about-job-templates-access-roles-teams/37545 "2023-01-11T19:58:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALEX\_SEYMOUR](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@ALEX\_SEYMOUR](https://forum.ansible.com/u/ALEX_SEYMOUR)\
**Post date:** [January 11, 2023, 7:58pm UTC](https://forum.ansible.com/t/question-about-job-templates-access-roles-teams/37545/1 "2023-01-11T19:58:47Z")

</div>

Hi I have some questions about template access configuration.

I have created a group of users. Those users need to create/edit job templates.  
to create a template, they copy (with the copy button) a base template, and they edit the new template.

but the problem is, access roles are not copied automatically so they add the access role team, manually.

Every users of the group need to have access to those templates.  
they are “normal user”.

Is there a configuration to avoid to add access role manually every time we copy a job template ?

Is there a way to copy automatically the access roles ?

if its not, how can I add an access role team to a template with the REST API ?  
Or any workaround ?

Thanks you

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [January 13, 2023, 6:57pm UTC](https://forum.ansible.com/t/question-about-job-templates-access-roles-teams/37545/2 "2023-01-13T18:57:48Z")

</div>

Hi,

One way around this might be to create a job template that the users have permission to launch. This job template run a playbook that will use the awx.awx collection to create a new job template and associated roles for that user. You could make use of the job\_template module “copy\_from” field so that you can copy from another existing job template. So then anytime a user needs a new job template, instead of hitting copy in the UI, they simply launch this job that will create a new job template for them.

If the generated templates need special fields like limits, the user could provide these details via extra\_vars or a survey, and the ansible playbook can use those to fine tune the generated job template with these extra details.

Let me know if this makes sense, happy to provide more details around this

AWX Team

---

<div class="post-metadata">

**Author:** ![ALEX\_SEYMOUR](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@ALEX\_SEYMOUR](https://forum.ansible.com/u/ALEX_SEYMOUR)\
**Post date:** [January 15, 2023, 9:04pm UTC](https://forum.ansible.com/t/question-about-job-templates-access-roles-teams/37545/3 "2023-01-15T21:04:34Z")

</div>

Hello,  
I have tried, it works,

Thank you
