How to Bulk Add Role to Multiple Users

Problem Statement

This article describes how to add multiple users to a role.

Solution

Adding users to a role requires Management API.

  1. Retrieve the list of user_ids by performing a search using GET Users endpoint. The q query parameter can be used to get users that match the specified criteria using query string syntax.
  2. Assign the users to a role by running the POST role users endpoint.