Skip to content

yaegashi/aadsync

Repository files navigation

aadsync

Introduction

aadsync is a cross-platform CLI tool for Azure AD synchronization API.

Currently, the main utilization area of the CLI is for Azure AD Connect cloud provisioning. It allows you to achieve the following tasks without Azure Portal or Microsoft Graph Explorer.

Examples

List service principals

aadsync sp list

Get the service principal for synchronization of your AD domain (it's usually stored in service principal's displayName attribute)

aadsync sp get --sp-id my.ad.domain

List synchronization jobs

aadsync sp job list --sp-id my.ad.domain

Get the status of synchronization job for AD2AADProvisioning (default)

aadsync sp job get --sp-id my.ad.domain

Get the status of synchronization job for AD2AADPasswordHash

aadsync sp job get --sp-id my.ad.domain --job-id AD2AADPasswordHash

Save the schema of synchronization job for AD2AADProvisioning (default) into schema.json

aadsync sp job schema get --sp-id my.ad.domain -o schema.json

Load the schema of synchronization job for AD2AADProvisioning (default) from schema.json

aadsync sp.job schema update --sp-id my.ad.domain -i schema.json

Reset the schema of synchronization job for AD2AADProvisioning (default)

aadsync sp.job schema reset --sp-id my.ad.domain