Skip to main content

disable-user

This Script is part of the Aggregated Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

This script disables users for multiple services.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.1.0

Dependencies#


This script uses the following commands and scripts.

  • get-user-data

Inputs#


Argument NameDescription
user_idList of users IDs of the users to disable. At least one of "user_id", "user_name" or "user_email" is required.
user_nameList of names of the users to disable. At least one of "user_id", "user_name" or "user_email" is required.
user_emailList of emails of the users to disable. At least one of "user_id", "user_name" or "user_email" is required.
brandsList of brands to disable users from.
verboseWhether to fetch a human-readable entry for each command or just the final result. If set to true, all commands will have human-readable entries. If set to false, only the final result will be human-readable.

Outputs#


PathDescriptionType
DisableUser.BrandThe brand (integration) used to disable the user.String
DisableUser.InstanceThe integration instance used to disable the user.String
DisableUser.DisabledWhether the user is disabled.Boolean
DisableUser.ResultWhether the disable action was successful. The result does not indicate whether the user is disabled. Possible values are: "Success", "Failed"String
DisableUser.MessageThe output message of the disable action.String
DisableUser.UserProfile.UsernameThe username of the user.String
DisableUser.UserProfile.IDThe ID of the user.String
DisableUser.UserProfile.EmailThe Email address of the user.String