Giter VIP home page Giter VIP logo

user-audit's Introduction

User Audit

This script, user_audit.py, is designed to import and merge user lists from company systems in order to create a master list of users. It aims to remove duplicates and identify orphaned users.

Dependencies

The script requires the following dependencies:

  • pandas: A powerful data manipulation library used for reading and manipulating CSV files.
  • glob: A module used for finding files based on pattern matching.

Make sure you have these dependencies installed before running the script.

Usage

To use the script, follow these steps:

  1. Place the user list files in the appropriate directories:

    • Microsoft 365 user list: ./downloads/ms.csv
    • R365 user list: ./downloads/r365.csv
    • Rackspace user lists: ./downloads/rackspace/*.csv
    • Reference user list: ./downloads/centra_ref_users.csv
  2. Run the user_audit.py script.

  3. The script will import and merge the user lists based on email addresses.

  4. It will then generate three reports:

    • "in_master": Users that are present in the master list.
    • "not_in_master": Users that are in the imported file but not in the master list.
    • "not_in_file": Users that are in the master list but not in the imported file.
  5. The reports will be saved as an Excel file in the ./output/ directory. The file name will be based on the source of the imported file (r365.xlsx, rackspace.xlsx, reference.xlsx).

  6. Review the generated reports to identify duplicates and orphaned users.

Note: The script currently has a commented-out section for reading the dashboard user list. You can uncomment and modify the necessary code to include the dashboard user list if needed.

Please ensure that you have the appropriate file permissions and valid file paths before running the script.

Feel free to modify and adapt the script to suit your specific requirements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.