Skip to content

194g0042/disable_license_notice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

disable_license_notice

When account disable check who have license not remove yet
And will use Teams webhook to push

Screenshots

image

Azure Application permission

Need to create Azure Application first, please following Microsoft document to create.
https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app

following permission:

Type API / Permissions name
Application Directory.Read.All
Application User.Read.All

How to try

The script requires Python version 3.13 or higher. Of course, you need to install it yourself first Python. On Linux, it is usually already installed. If not, install it, for example:

$ sudo yum install python3
$ sudo dnf install python3
$ sudo apt install python3
$ sudo pacman -S python

Installing and update dependencies

$ pip install -r requirements.txt

Create .env file to save credential

client_id = "your client id"
client_secret = "your secret"
tenant_id = "your Azure tenant id"
webhook_url = "your webhook url"

Change Webhook Url from teams_webhook.py

def Teams_Post():
    return "Webhook_URL"

Usage

$ py main.py

About

Teams webhook to notice who have license also disable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%