SendEmailToManager

Send an approval email to the manager of the employee with the given email allowing the manager to reply directly into the incident.

python · Active Directory Query

Details

IDSendEmailToManager
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
Tagscommunication

README

Send an approval email to the manager of the employee, allowing the manager to reply directly into the incident

Script Data


Name Description
Script Type python3
Tags communication
Cortex XSOAR Version 5.0.0

Dependencies


This script uses the following commands and scripts.

  • send-mail
  • ad-search

Inputs


Argument Name Description
email The employee email. We will send an email to his manager. If not provided will be taken from incident label ‘Email/from’
manager The manager attribute in Active Directory. Default is ‘manager’.
allowReply If true, we will add an entitlement to the subject allowing manager to reply to war room
body The contents of the email body. It’s a template that can include $empName and $managerName which will be replaced with actual values.
request The contents of the request from the manager. Will be added below the body. If none is provided, incident details will be taken.
replyEntriesTag Tag to add on email reply entries
persistent Indicates whether to use one-time entitlement or a persistent one

Outputs


There are no outputs for this script.

commonfields:
  id: SendEmailToManager
  version: -1
name: SendEmailToManager
fromversion: 5.0.0
script: '-'
type: python
subtype: python3
tags:
- communication
comment: Send an approval email to the manager of the employee with the given email allowing the manager to reply directly into the incident.
system: true
args:
- name: email
  description: The employee email. We will send an email to his manager. If not provided will be taken from incident label 'Email/from'.
- name: manager
  description: The manager attribute in Active Directory. Default is 'manager'.
- name: allowReply
  auto: PREDEFINED
  predefined:
  - "true"
  - "false"
  description: If true, we will add an entitlement to the subject allowing manager to reply to war room.
- name: body
  description: The contents of the email body. It's a template that can include $empName and $managerName which will be replaced with actual values.
- name: request
  description: The contents of the request from the manager. Will be added below the body. If none is provided, incident details will be taken.
- name: replyEntriesTag
  description: Tag to add on email reply entries.
- name: persistent
  description: Indicates whether to use one-time entitlement or a persistent one.
  auto: PREDEFINED
  predefined:
  - "true"
  - "false"
  defaultValue: "false"
scripttarget: 0
dependson:
  must:
  - ad-search
  - send-mail
timeout: 0s
tests:
- No test
dockerimage: demisto/python3:3.12.13.10116658
supportedModules:
- agentix
- xsiam
- edr