Skip to content

davidlahoz/kandji-macos-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kandji MacOS Scripts

Not Maintained

Overview

Welcome to the Kandji MacOS Scripts repository! This collection of scripts is designed to streamline various tasks for MacOS users, particularly those utilizing the Kandji platform. While some scripts in this repository are developed specifically for integration with Kandji — including generating alerts for Kandji's Admin panel and leveraging the Kandji CLI — others are more broadly applicable for routine monitoring and configuration tasks on MacOS.

The primary goal of these scripts is to automate repetitive tasks, simplify reporting, and assist in system configurations. They are crafted with practicality in mind and, although they might have room for optimization, they serve as reliable tools for everyday use.

Features

  • Scripts: Contains essential monitoring scripts such as battery health status and FreeSpaceMonitor. These scripts utilize exit codes to communicate results effectively within the Kandji framework.

  • Utilities: This section utilizes the Kandji API and Python to generate a list of installed applications in JSON format. It offers the flexibility to filter and create user lists based on application usage.

  • Custom Profiles: Contains few mobileconfig with quite generic settings for macOS and iOS. However for obvious reasons, they can be manually removed to avoid hassle. A version of the mobileconfig files with no-removal option is also provided as separated file. (Note: in order to prevent users from removing the profiles, devices must be on supervised mode)

Configuration

Prerequisites

To utilize the DeviceAppFiltering scripts effectively, certain variables from config.json need to be set up as per your environment:

  • API_KEY: Your personal API key from Kandji.
  • subdomain: Your specific Kandji subdomain. Please note that if you're using eu or us location is hardcoded in 1.GetAllDeviceID.py and 2.AllDeviceAppListing.py. I do not plan to upgrade since I will stop working using Kandji.

Acknowledgements

This project owes its thanks to:

About

Bunch of configs and scripts for MacOS to be mainly used along with Kandji (some of them might work standalone)

Topics

Resources

License

Stars

Watchers

Forks