Entra ID 가 Provisioning Hub 가 되어 Forest A 에서 동기화된 계정을 Forest B 로 Reverse Provisioning 하는 방안에 대한 내용을 다루는 문서이다.

전체적인 데이터 흐름에 대한 시각화를 아래와 같이 구현 할 수 있다.

graph TB
    %% ==========================================
    %% SUBGRAPH 1: 사전 구성 요건 (Prerequisites)
    %% ==========================================
    subgraph Pre_Req ["1. 사전 구성 요건 (Prerequisites Setup)"]
        direction LR
        App_Reg["🔑 <b>1. App Registration</b><br/>- Client ID / Secret / Tenant ID 발급<br/>- SynchronizationData-User.Upload 권한 부여"]
        Entra_App["⚙️ <b>2. Enterprise Application</b><br/>- API-driven provisioning to AD 생성<br/>- Job ID & /bulkUpload Endpoint URL 채득"]
        Agent_Inst["🖥️ <b>3. On-Prem Provisioning Agent</b><br/>- Target AD 멤버 서버에 Agent 설치<br/>- Target OU(DN) 지정 및 gMSA 자동 생성"]
    end

    %% ==========================================
    %% SUBGRAPH 2: 프로비저닝 런타임 데이터 흐름
    %% ==========================================
    subgraph Runtime_Flow ["2. 프로비저닝 실행 및 데이터 흐름 (Runtime Data Flow)"]
        direction TB

        subgraph Client_Env ["트리거 서버 (Client Server)"]
            CSV_File["📄 <b>UsersToProvision.csv</b><br/>(프로비저닝 대상 사용자)"]
            PS_Script["📜 <b>PowerShell 배치 스크립트</b><br/>(50명 단위 SCIM JSON 가공)"]
        end

        subgraph Entra_Cloud ["Entra ID Tenant (Cloud Engine)"]
            Auth_Service["🔐 <b>OAuth 2.0 Auth Endpoint</b><br/>(login.microsoftonline.com)"]
            Graph_API["🌐 <b>Graph API Endpoint</b><br/>(.../jobs/{jobId}/bulkUpload)"]
            Prov_Engine["⚙️ <b>Entra Provisioning Engine</b><br/>(SCIM 파싱 및 속성 매핑)"]
        end

        subgraph OnPrem_Env ["Target On-Premises AD (Forest B)"]
            Prov_Agent["🤖 <b>Entra Provisioning Agent</b><br/>(HTTPS 443 Outbound Polling)"]
            Target_AD["🌳 <b>Target Active Directory</b><br/>(지정된 Target OU)"]
        end

        %% Step Data Flow
        CSV_File -->|"[Step 1] 사용자 데이터 읽기"| PS_Script
        PS_Script -->|"[Step 2] Access Token 요청 (Client Credentials)"| Auth_Service
        Auth_Service -->|"[Step 3] Bearer Access Token 발급"| PS_Script
        PS_Script -->|"[Step 4] SCIM 2.0 Bulk JSON 전송 (POST, 최대 50명 배치)"| Graph_API
        Graph_API -->|"[Step 5] 데이터 파싱 및 속성 매핑 규칙 검증"| Prov_Engine
        Prov_Engine -->|"[Step 6] 프로비저닝 명령 전달 (HTTPS 443 아웃바운드)"| Prov_Agent
        Prov_Agent -->|"[Step 7] Target OU에 AD 계정 신규 생성 (LDAP Create)"| Target_AD
    end

    %% Styling Definitions
    classDef prereq fill:#e3f2fd,stroke:#1565c0,stroke-width:2px,color:#0d47a1;
    classDef client fill:#fff3e0,stroke:#e65100,stroke-width:2px,color:#e65100;
    classDef cloud fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#4a148c;
    classDef onprem fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px,color:#1b5e20;
    classDef subView fill:#ffffff,stroke:#757575,stroke-width:2px,stroke-dasharray: 5 5;

    class App_Reg,Entra_App,Agent_Inst prereq;
    class CSV_File,PS_Script client;
    class Auth_Service,Graph_API,Prov_Engine cloud;
    class Prov_Agent,Target_AD onprem;
    class Pre_Req,Runtime_Flow subView;

참조문서

설치 필수조건: https://learn.microsoft.com/en-us/entra/identity/hybrid/cloud-sync/how-to-prerequisites?tabs=public-cloud

API Driven Inbound Provisioning: https://learn.microsoft.com/en-us/entra/identity/app-provisioning/inbound-provisioning-api-concepts#:~:text=%7C%20Ad%2Dhoc%20user%20creation%20in%20Microsoft%20Entra,the%20new%20guest%20standardized%20access%20%7C%20%7C

Entra ID Provisioning Agent 설치

Provisioning 구성

이 과정을 UI 에서 진행 가능한 그룹 프로비저닝까지만을 다룬다.

API 기반 onPrem AD Inbound Provisioning 구성

EntraID 기반 사용자 객체가 on-Prem AD 방향으로 프로비저닝 되어야 하는 상황일 경우 Entra Store 에서 제공하는 API-driven inboudn provisioning to on-premises Active Direcy 라는 Enterprise Application 을 사용할 수 있다.

API-driven inbound provisioning concepts - Microsoft Entra ID

API Driven Provisioning Caller

이제 관리자가 EntraID 에서 AD 방향으로 계정을 프로비저닝 하기 위한 호출 절차를 진행해야 한다.