databricks-azure-ad-sync-provider
databricks-azure-ad-sync-provider is a package that allows to sync users, groups and service principals from Microsoft Entra ID to Databricks.
Requirements
databricks-azure-ad-sync-provider is built on top of:
- python 3.9+
Authentication
Authenticate to you Microsoft Entra ID and Azure Databricks to use the package. There are multiple ways available for that, we suggest the following:
1. With Azure CLI
-
Authenticate to your Azure account on your machine with
az login. -
Specify necessary variables
- With environment variables: Setup for
DATABRICKS_HOSTandDATABRICKS_ACCOUNT_ID - With a
.databrickscfgfile: Create the.databrickscfgfile (~ for Linux or macOS, and %USERPROFILE% for Windows) containing the following info:
[DEFAULT] host = https://accounts.azuredatabricks.net/ account_id = <Databricks account id> - With environment variables: Setup for
2. With Microsoft Entra ID service principal:
-
Create a service principal in Microsoft Entra ID and add it to Azure Databricks and grant it target permissions (see reference documentation).
-
Specify necessary variables
-
With environment variables
- For Azure: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET (see Microsoft Entra ID authentication)
- For Databricks: DATABRICKS_HOST, DATABRICKS_ACCOUNT_ID, DATABRICKS_CLIENT_ID, DATABRICKS_CLIENT_SECRET (see Databricks authentication)
-
With a
.databrickscfgfile: Create a .databrickscfg file (~ for Linux or macOS, and %USERPROFILE% for Windows) containing the following info:
[DEFAULT] host = https://accounts.azuredatabricks.net/ account_id = <Databricks account id> azure_tenant_id = <Azure tenant id> azure_client_id = <Azure service principal application ID> azure_client_secret = <Azure service principal secret> -
Installation
pip install databricks-azure-ad-sync-provider
Usage
Sync execution
<fct_name> -f/--file <path to your yaml file> -d/--delete
- -f/--file
- -d/--delete: If provided, this enablew to delete identities in Databricks.
Release files for databricks-azure-ad-sync-provider 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| databricks-azure-ad-sync-provider-0.1.4.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| databricks_azure_ad_sync_provider-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.5 kB
Release files / databricks-azure-ad-sync-provider-0.1.4.tar.gz
| Download URL | databricks-azure-ad-sync-provider-0.1.4.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eaceb830579f275b132e69ff619b3208a4ee639582db9b3805eba3506075547
|
|
BLAKE2b-256 checksum How to use checksums |
7f7816a0964f16db7733d2b030664e17bd225592df788a5099709197815a40aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.8.1 CPython/3.10.10
|
Release files / databricks_azure_ad_sync_provider-0.1.4-py3-none-any.whl
| Download URL | databricks_azure_ad_sync_provider-0.1.4-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ee5fa8dffed9f765a18909b9c189a1d2b3d3addaadb9d1f64e998de6109a534
|
|
BLAKE2b-256 checksum How to use checksums |
a389b46969ecab5f43199f4f9a0968efa83a76644b2d61957a6082b0ab9792d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.8.1 CPython/3.10.10
|