Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Draft

This article will show you how to add users to a dashboard from a CSV file using Postman.

Postman

Postman is a free utility that works with API calls. You can download & install or use the online version. Register and you’re away.

The Panintelligence dashboard contains an API which we will utilise.

The general approach is that we will create a collection of API requests that belong in single folder, we will then “present” a CSV file to the collection, which for every row, it will iterate once through the series of requests.

The requests will contain variable placeholders for each of the columns in the CSV file.

Info

The file we will be using is a simple CSV with just 10 rows, containing User Information

We will use WorkID as username, important to note the use of UserType.

We also need to ensure we have existing Roles that match the RoleIDs provided. Included are two user variables .

...

Examining the variables, we have enough information to:

  1. Create a user of UserType

  2. Add new user to a Role

  3. Create 2 User Variables

In Postman, we need to create a Collection (folder), with 4 requests:

...