search cancel

How to get a list of all users for an account

book

Article ID: 215808

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

The need may arise to get a list of all users and per user attributes such as ID, Email, Name and Role. 
The UI only gives 5 users on every page.

How to get a list of all users in one go?

Environment

BLAZEMETER GENERAL PLATFORM ISSUE

Resolution

You can extract all users of your account using the API, as explained in this manual page.

Since pagination is set to only show 10 users and also all users are listed, not only the enabled ones, the curl command would have to look like this:

curl 'https://a.blazemeter.com/api/v4/accounts/123456/users?limit=100&enabled=true' \
    --user 'api_key_id:api_key_secret'

provided that you don't have more than 100 enabled users in your account. If you do, just increase the limit parameter to the maximum amount of users.

The account 123456 needs to be substituted by the actual account ID.