GetAwayUsers

Returns a list of all the users marked as away in Cortex XSOAR.

python · Shift Management

Details

IDGetAwayUsers
Languagepython
From Version5.5.0
Docker Imagedemisto/python3:3.12.13.10116658
TagsShift Management widget

README

Returns a list of all the users marked as away in Cortex XSOAR

Script Data


Name Description
Script Type python3
Tags  
Cortex XSOAR Version 5.5.0

Inputs


There are no inputs for this script.

Outputs


Path Description Type
AwayUsers.id Away user ID. String
AwayUsers.username Away user username. String
AwayUsers.name Away user name. String
AwayUsers.phone Away user phone. String
AwayUsers.roles Away user roles. Unknown
AwayUsers.email Away user email. Unknown

Script Example


## Context Example

```json
{
    "CortexXSOAR": {
        "AwayUsers": {
            "email": "admintest@demisto.com",
            "id": "admin",
            "name": "Admin Dude",
            "phone": "+650-123456",
            "roles": {
                "demisto": [
                    "Administrator"
                ]
            },
            "username": "admin"
        }
    }
}

Human Readable Output

Away Users

Email Id Name Phone Roles Username
admintest@demisto.com admin Admin Dude +650-123456 demisto: Administrator admin
args: []
comment: Returns a list of all the users marked as away in Cortex XSOAR.
commonfields:
  id: GetAwayUsers
  version: -1
name: GetAwayUsers
outputs:
- contextPath: AwayUsers.id
  description: Away user ID.
  type: String
- contextPath: AwayUsers.username
  description: Away user username.
  type: String
- contextPath: AwayUsers.name
  description: Away user name.
  type: String
- contextPath: AwayUsers.phone
  description: Away user phone.
  type: String
- contextPath: AwayUsers.roles
  description: Away user roles.
  type: Unknown
- contextPath: AwayUsers.email
  description: Away user email.
  type: String
script: '-'
tags:
- Shift Management
- widget
timeout: '0'
type: python
subtype: python3
dockerimage: demisto/python3:3.12.13.10116658
fromversion: 5.5.0
tests:
- No tests (auto formatted)