Set up Postman for bulk user management
Platform Notice: Cloud, Server, and Data Center - This article applies equally to all platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Download Postman
Download Postman from https://www.postman.com/downloads/
Run Postman.
Create a new environment
Click New, or type
Ctrl
+N
(Windows/Linux) orCmd
+N
(MacOS).Select “Environment”.
Name the environment “Atlassian Cloud”.
Set up the following variables:
Variable Type Initial value and Current value Comments cloudUrl
default
https://<yoursite>.atlassian.net
Replace yoursite with your subdomain, e.g. acmecorp
apiTokenEmailAddress
default
<youruser@yourdomain.com>
Your Atlassian administrator account email
apiToken
secret
From https://id.atlassian.com/manage-profile/security/api-tokens
Note that Postman variables are case-sensitive.
- Click Save towards the top right corner.
Create a new collection
Click New, or type
Ctrl
+N
(Windows/Linux) orCmd
+N
(MacOS).Select “Collection”.
Name the collection “Atlassian Cloud User Management”.
- Click the “Authorization” tab.
Change Type to “Basic Auth”.
Specify
{{apiTokenEmailAddress}}
as the Username. The text should be coloured orange, indicating that Postman has recognized a variable has been specified. This can be confirmed by hovering over the variable name.Specify
{{apiToken}}
as the Password. The text should be coloured orange, indicating that Postman has recognized a variable has been specified. This can be confirmed by hovering over the variable name.Click the “Tests” tab.
Enter:
pm.test("Request successful", function () { pm.expect(pm.response.code).to.be.oneOf([200,201,202,204]); });
This allows us to ensure all REST APIs have been made successfully.- Click Save towards the top right corner.