メインコンテンツにスキップ

Okta syncer

The Okta syncer pulls users from your Okta organization into Casdoor using the Okta Users API. It handles pagination automatically and maps account status to Casdoor's IsForbidden flag.

前提条件​

In the Okta Admin Console, create an API token (Security → API → Tokens → Create Token). The token needs read access to users.

Note your Okta domain (e.g. https://your-org.okta.com).

設定​

Create a new syncer in Casdoor (Syncers → Add) and fill in:

フィールド値
組織Target Casdoor organization
NameA unique name for this syncer
TypeOkta
Server URLYour Okta domain (e.g. https://your-org.okta.com)
PasswordYour Okta API token

The database-related fields are not used and can be left empty.

Field mappings​

Okta fieldCasdoor fieldNotes
idIdOkta user ID
profile.login名前Username (usually email)
profile.displayNameDisplayNameFull display name
profile.firstNameFirstNameGiven name
profile.lastNameLastNameFamily name
profile.emailメールアドレスPrimary email
profile.mobilePhone電話Mobile number
profile.titleタイトルJob title
profile.preferredLanguage言語Preferred language
状態IsForbiddenSee status mapping below

Account status mapping​

Okta users in the following states are marked as IsForbidden = true in Casdoor:

  • SUSPENDED
  • DEPROVISIONED
  • LOCKED_OUT

All other statuses (ACTIVE, STAGED, PROVISIONED, PASSWORD_EXPIRED, RECOVERY) are treated as active.

Running the syncer​

Click Test Connection to verify connectivity before enabling. Toggle Is enabled for scheduled sync, or click Sync to run an immediate import.

Pagination is handled internally via Okta's Link response headers; all users are retrieved regardless of directory size.