Skip to main content

IAMInitOktaUser

This Script is part of the Okta Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.5.0 and later.

Generates a password and sets the password for an Okta user. Enables the account. Sends an email to the user with the account information. This script is running the send-mail command, make sure there is a mail sender integration configured.

Script Data#


NameDescription
Script Typepython3
TagsIAM, Utility, Okta
Cortex XSOAR Version6.5.0

Inputs#


Argument NameDescription
pwdGenerationScriptThe password generator script.
usernameThe Okta username of the user.
displaynameThe display name of the employee.
temporary_passwordWhen true, you'll need to change the password in the next login.
to_emailThe email address that the password will be sent to.
inc_idThe incident ID.
email_subjectThe subject of the email sent to IT.
email_bodyThe body of the email sent to IT.
ZipProtectWithPasswordThe password to protect the zip file that contains the generated password. if not provided, the generated password will be send in the body of the email.
min_lcaseMinimum number of lower case characters to include in password. Used with the GeneratePassword script (leave empty if using another script).
max_lcaseMaximum number of lower case characters to include in password. Used with the GeneratePassword script (leave empty if using another script).
min_ucaseMinimum number of upper case characters to include in password. Used with the GeneratePassword script (leave empty if using another script).
max_ucaseMaximum number of upper case characters to include in password. Used with the GeneratePassword script (leave empty if using another script).
min_digitsMinimum number of digits to include in password. Used with the GeneratePassword script (leave empty if using another script).
max_digitsMaximum number of digits to include in password. Used with the GeneratePassword script (leave empty if using another script).
min_symbolsMinimum number of symbols to include in password. Used with the GeneratePassword script (leave empty if using another script).
max_symbolsMaximum number of symbols to include in password. Used with the GeneratePassword script (leave empty if using another script).

Outputs#


PathDescriptionType
IAM.InitOktaUser.successTrue if the Okta user was successfully activated, false otherwise.Boolean
IAM.InitOktaUser.sentMailTrue if the mail containing the information about the user activation and its auto-generated password was successfully sent to IT, false otherwise.Boolean
IAM.InitOktaUser.errorDetailsThe error details, if exists.String
IAM.InitOktaUser.sendMailErrorThe error received from send-mail command, if exists.String