Coder Template management automation

Hello, I want to split template management responsibility between teams. To make this easier, I would like to automate the bootstrap process for a given template:

  1. create the template skeleton
  2. create a repository and push the skeleton
  3. create a pipeline definition
  4. push the initial skeleton
  5. setup access control
The last part is what bothers me at the moment. I would like to give the necessary permissions to modify the template to either a group or an individual. (I actually need both). The "Gap" I'm seeing at the moment is: How to get the correct authentication token.

If I need a static token, I want to at least pre-generate it for the user and put it into the CI settings. My first question is therefore:

Is this endpoint capable to generate api-tokens for any user if I have the necessary permissions (user admin or owner): https://coder.com/docs/v2/latest/api/users#create-token-api-key ?
Was this page helpful?