IBM Security SOAR

Expand all | Collapse all

Python Script to capture password expiry.

  • 1.  Python Script to capture password expiry.

    Posted Wed May 26, 2021 10:50 AM
    Many moons ago, we found a Github repository (linked below) that contained a number of sample scripts. One of which when it was ran created a XLSX file of all the users and groups (with members) now that the password policy has been implemented, we tried to amend this script to include this information (password expiry) but we can't find it referenced in the documents anywhere, has anybody done this and knows the field name / lookup?

    thanks 

    Colin 

    ibmresilient/resilient-python-examples
    GitHub remove preview
    ibmresilient/resilient-python-examples
    This is an example of a simple Python application using the Resilient REST API. It produces a spreadsheet report of all users and groups in the organization. Python version 2.7.3 or later, or 3.4 or later Python 'resilient' and 'openpyxl' modules installed.
    View this on GitHub >





    ------------------------------
    Colin Mattholie
    ------------------------------


  • 2.  RE: Python Script to capture password expiry.

    Posted Thu May 27, 2021 05:16 AM
    Hi Colin,

    I think the user field you are looking for is
    password_expiration_date​
    It should be present on the user object. You could probably add it to 'users_column_map' and that might fix your issue. A useful resource to help with this kind of thing is going to Help/Contact -> Interactive REST API which allows you to try out all of the public Resilient endpoints and see what fields they return.

    Hope that helps,


    ------------------------------
    Sean Mc Cann
    ------------------------------