Skip to end of banner
Go to start of banner

Adding Users to a Dashboard with Postman Flows

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This article will explain how to add N number of Users to a dashboard.

We will use just 2 postman requests within a Postman Flow, alongside some control flow logic and a few variables to create as many users as you want.

😱 Unfortunately Postman Flows CANNOT be shared on the free subscription, but as they are so easy to create, we are going to create it from scratch (smile)

Postman flows employ or reference existing postman collection requests, so before creating a flow we have to create the requests that we want to put in our flow.

To help visualise where we are heading here is a image of the flow end result.

Postman CreateUsersFinishedFlow.png

There are just 2 Send Requests, one (1) is to logon onto the dashboard and get a token which is used as the authenticator in the other second call (2) which creates a user.

The create user send request is part of a repeating control flow that loops the number of times you have set the variable usersToCreate

The variable userNamePrefix is used as the prefix for all user names.

The variable StartAt sets the user number to start creating from.

If you want to create 500 users starting at 1001 with a prefix of “TH_” eg “TH_1001” through to “TH_1500” then the variable values would be:

usersToCreate: 500

StartAt: 1001

userNamePrefix: TH_

Create Users Collection

Lets get started by creating a new Collection in Postman called Create Users

image-20241101-105730.png

Now we will create the 2 POST requests, Get Token & Create User

  • No labels