Automation of admin user creation

We are currently exploring ways to automate various administrative tasks within our Jira Service Management (JSM) instance. Specifically, we are looking to automate processes such as:

  1. Creating admin accounts
  2. Adding or updating licenses
  3. Asset-Azure Integration
  4. Creating users, groups, and projects

We were able to find the REST APIs to create or update projects and perform administrative tasks like creating users and groups and assigning them permissions. For reference, we have been using the following API documentation: [https://docs.atlassian.com/software/jira/docs/api/REST/9.11.2/\#api/2/project-createProject]

However, we are seeking similar REST API capabilities for the other tasks : Admin account creation, License addition/update, Asset integration with Azure.

We initially considered using Terraform for these tasks, but we found that HashiCorp does not maintain a Jira provider. While there are third-party providers available, such as Nyxtend (Terraform Registry)) and fourplusone , we prefer not to rely on these third-party solutions.

Could you advise if there are any built-in ways, Jira plugins, or additional REST API endpoints that can help us automate these administrative tasks?

Hello Palak,

Admin Account Creation

For creating admin accounts, you can use the Jira Service Management REST API. Specifically, the servicedeskapi/customer resource allows you to create customer user accounts. Here’s an example of how to create a user account:

POST /rest/servicedeskapi/customer

You’ll need to provide the necessary user details in the request body.

License Addition/Update

To manage licenses, you can use the private REST API for Jira Service Management. Here’s an example of how to set the license details:

POST /rest/plugins/applications/1.0/installed/jira-servicedesk/license

You’ll need to include the license key in the request body.

Asset Integration with Azure

For integrating assets with Azure, you might need to use a combination of Jira REST APIs and Azure APIs. Unfortunately, there isn’t a specific REST API endpoint for direct asset integration with Azure in Jira Service Management. You may need to develop a custom solution using Azure’s REST APIs and Jira’s REST APIs to achieve this integration.

Built-in Plugins and Additional REST API Endpoints

While there aren’t specific built-in plugins for all the tasks you mentioned, you can explore the Jira Service Management REST API documentation for more details on available endpoints and resources. Additionally, you can check if there are any third-party plugins or integrations that might suit your needs.

For integrating assets with Azure, a custom solution is the way to go. You’ll need to leverage both Jira REST APIs and Azure APIs to create a seamless integration.

  1. Jira REST API: Use the Jira REST API to manage your Jira instance, including creating and updating issues, users, and other entities.
  2. Azure REST API: Utilize Azure’s REST API to manage your assets in Azure.
  3. Custom Middleware: Develop a custom middleware or service that acts as a bridge between Jira and Azure. This middleware can handle the synchronization and ensure that data flows smoothly between the two systems.
  4. Event Handling: Implement event handlers to capture changes in Jira and push them to Azure, and vice versa. This ensures that both systems stay up-to-date with the latest information.
    If you need a specific plugin feel free to contact me.

Best regards
Daniel