Create groups using Postman and REST APIs in Cloud
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
When to use this article
This article can be utilized whenever many groups need to be created in Atlassian Cloud (Jira or Confluence).
When not to use this article
For organizations with users and groups provisioned through Atlassian Guard SCIM, utilize the Atlassian Access User Provisioning REST API.
Prepare data
1. Open a text editor and create a document with a list of all groups to be formed.
2. Make sure the first row includes a header labeled groupName.
3. Save the document in CSV format, which will now contain a list of groups to be established.
Sample file
groupName
office-pouso-alegre
mtv-sales-ops
mtv-developers
team-rainbow
vip-support
Setting up Postman
This section may be skipped if:
a collection named "Atlassian cloud User Management" has previously been setup, and
an environment named "Atlassian Cloud" has previously been setup.
For complete detailed steps in using Postman, see Set up Postman for bulk user management.
Setting up REST API call
Select New or type
Ctrl
+N
(Windows/Linux) orCmd
+N
(MacOS).Select HTTP.
Name the request "Create Group in Atlassian Cloud."
Change the method from
GET
toPOST
.In the URL, paste:
{{cloudUrl}}/rest/api/latest/group
Select Authorization tab.
Ensure Type is "Inherit auth from parent."
- Select Body tab.
Select raw.
Change the content type to "JSON."
Paste the following block in the payload area:
{ "name": "{{groupName}}" }
Noting the {{groupName}} matches the CSV header (case-sensitive).
Select Save, saving into the "Atlassian Cloud User Management" collection.
Execute the Postman runner
Change the environment using the environment selector at the top right of Postman, selecting Atlassian Cloud.
Select Collections in the sidebar.
Select the Atlassian Cloud User Management collection.
On the Overview tab, select Run towards the top right corner.
Under Run order, ensure there is one and only REST API call: "Create Group in Atlassian Cloud."
On the Functional tab, select Run manually.
Select Data.
Navigate to and select the previously prepared csv file.
Reduce the number of "Iterations" under Run configuration to 1.
Leave Advanced settings as is.
Select Run Atlassian Cloud User Management.
Check Postman to ensure the runner collection has passed all tests. The run results should show:
"Iterations" and "All tests" to be equivalent in count
passed (n) where n is the number of iterations
failed (0)
skipped (0)
Check admin.atlassian.com to ensure the group count has been increased by one.
Rerun Postman Runner following the previous steps, with the number of "Iterations" set to the number of rows in the CSV file.