---
title: "How to deactivate Confluence users in bulk using CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89138625/How%20to%20deactivate%20Confluence%20users%20in%20bulk%20using%20CLI"
format: markdown
---
<span style="color: #333333">This article explains how to deactivate users in bulk on a Confluence instance using Confluence Command Line Interface (CLI).</span>

> ⚠️ *<span style="color: #333333">updateUser</span>*<span style="color: #333333"> action is only available in the server version of Confluence and not in the Cloud version.</span>

## <span style="color: #333333">Instructions</span>

1. <span style="color: #333333">Create a CSV file named </span>*<span style="color: #333333">user.csv </span>*<span style="color: #333333">with the list of users as required.</span>  
> Macro (inline-media-image)
2. <span style="color: #333333">Write a command using the </span>*<span style="color: #333333">runFromCsv</span>*<span style="color: #333333"> action and an </span>*<span style="color: #333333">updateUser</span>*<span style="color: #333333"> common action to deactivate each user listed in the CSV file from the Confluence instance.</span>