How to deactivate Confluence users in bulk using CLI

This article explains how to deactivate users in bulk on a Confluence instance using Confluence Command Line Interface (CLI).

updateUser action is only available in the server version of Confluence and not in the Cloud version.

Instructions

  1. Create a CSV file named user.csv with the list of users as required.
  2. Write a command using the runFromCsv action and an updateUser common action to deactivate each user listed in the CSV file from the Confluence instance.

    --action runFromCsv --file "user.csv" --common "--action updateUser --deactivate"