A Python Typer-based CLI tool to generate fake data for Azure AD.
Project description
AzDummy
A Python Typer-based CLI tool to generate fake data for Azure AD. AzDummy also uses Rich for some dope console output.
Installation
The recommended method of installation is with pipx.
pipx install azdummy
However, you can install the normal way from PyPi with python3 -m pip install azdummy
.
Usage
On first run, user will be prompted to create a config file. Location of this config file depends on OS. Note: There are some environment variables included that are currently not used.
- Windows:
C:\Users\<user>\AppData\Roaming\azdummy\settings.env
- Linux/Mac OS:
~/.azdummy/settings.env
Currently used variables:
- AZD_LOCALE: (str) Shortcode for supported locales
- AZD_TENANT_FQDN: (str) One of the domains in the tenant (Usually
<domain>.onmicrosoft.com
format) - AZD_NUM_USERS: (int) Number of users to generate
- AZD_BLOCK_LOGIN: (bool) Block generated users from logging in
- AZD_GROUP_NAMES: (list) List of groups to add users to
NOTE: Due to restrictions on the userPrincipalName field, all names are generated in English. However, AzDummy supports other locale-specific data generation (such as addresses).
Supported Locales:
- CZECH = "cs"
- DANISH = "da"
- GERMAN = "de"
- AUSTRIAN_GERMAN = "de-at"
- SWISS_GERMAN = "de-ch"
- GREEK = "el"
- ENGLISH = "en"
- AUSTRALIAN_ENGLISH = "en-au"
- CANADIAN_ENGLISH = "en-ca"
- BRITISH_ENGLISH = "en-gb"
- SPANISH = "es"
- MEXICAN_SPANISH = "es-mx"
- ESTONIAN = "et"
- FARSI = "fa"
- FINNISH = "fi"
- FRENCH = "fr"
- HUNGARIAN = "hu"
- ICELANDIC = "is"
- ITALIAN = "it"
- JAPANESE = "ja"
- KAZAKH = "kk"
- KOREAN = "ko"
- DUTCH = "nl"
- BELGIUM_DUTCH = "nl-be"
- NORWEGIAN = "no"
- POLISH = "pl"
- PORTUGUESE = "pt"
- BRAZILIAN_PORTUGUESE = "pt-br"
- RUSSIAN = "ru"
- SLOVAK = "sk"
- SWEDISH = "sv"
- TURKISH = "tr"
- UKRAINIAN = "uk"
- CHINESE = "zh"
Commands
Commands are available here. You can generally use --help/-h
for any command or subcommand for more information. With default settings, the following command will generate 500 users for azdummy.onmicrosoft.com
(non-existant tenant).
azdummy gen users
What do I do with the output?
The default output provides two files for user: output_create.csv
and output_create.csv
. These files can be used with the Bulk Create and Bulk Delete options in Azure Portal in the Azure AD Users menu. Additionally, one file is created for each defined group with the members of those groups. These files can be used with the Import Members and Remove Members options in Azure Portal in the Azure AD Group menu.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file azdummy-1.1.2.tar.gz
.
File metadata
- Download URL: azdummy-1.1.2.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08745d126bc109ce4f5d2765e2b51694a2c54e031b06dfd0e9cdf212b304d957 |
|
MD5 | a3c2049d01f518e6a33ce6bd37d5f606 |
|
BLAKE2b-256 | 9afac0bc9f2499de3948787c3cf58b819a10f20fac19ec5d2ce8984439580f60 |
File details
Details for the file azdummy-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: azdummy-1.1.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7912c325f1d72483220cbf81d0278cb7901ecfbd0d459109414687136f36d1db |
|
MD5 | 80a7fcde396af76bd78f63069ff9cee9 |
|
BLAKE2b-256 | 0d94c35d158e14f4acbce02d703016114c11d78688d249dfa28a25d478c78d8b |