Synchronize via REST API Active Directory Users to SafeNet Trusted Access
Cina Shaykhian cina.shaykhian@thalesgroup.com
Build 0.12 (testing only) - 2021.03.21
This project is a simple user synchronization script using REST API.
Project is created with:
- PowerShell: 3.0 and above
- Windows Server (if necessary
Import-Module ActiveDirectory)
First configure config\agent.config:
# REST API key (find in STA console)
API_key=YOUR_SECRET_REST_API_KEY_HERE
# REST API endpoint (find in STA console)
API_endpoint=https://api.<ZONE>.safenetid.com/api/v1/tenants/<STA_TENANT_ID>/users
# Comma separated AD groups to sync
Groups=Dummy Group 1, Dummy Group 2, ...
Then use .\rest-sync-agent.ps1 to run.