Org2Org Integration (Basic) in Okta

Org2Org Integration (Basic) in Okta

A friendly, complete guide to connecting one Okta organization to another, so that people and groups travel across and sign-in just works.

Imagine two schools that share a few teachers. A teacher belongs to the main school, but spends two days a week at the smaller school across town. Without a plan, the smaller school must make a new staff card, a new timetable, and a new locker for that teacher, then remember to take it all away when the teacher stops visiting. That is a lot of paperwork, and mistakes are easy.

Now imagine the two schools agree on a simple arrangement. The main school keeps the official list of teachers. Whenever someone is added, changed, or removed from that list, the smaller school’s records update by themselves. And when the teacher arrives at the smaller school, the front desk already trusts the main school’s badge. Nobody fills out a form twice.

That arrangement is what Org2Org does for Okta. An Okta “org” is one company’s Okta account. Sometimes a business has two or more of them. Org2Org connects them so that one can send people, groups, and trust to the other. This post explains the basic version of that connection from the very beginning. You do not need to know anything about Okta first. By the end you will understand what the pieces are, how data and sign-in flow between them, how to set it up carefully, and how to keep it healthy.

WWhat Is Org2Org?

It is a ready-made Okta connection that links one Okta organization to another.

An Okta organization, usually shortened to org, is a separate Okta environment with its own web address, its own people, its own applications, and its own rules. Most companies have one. But many have two, three, or dozens. A company might keep a “production” org for real work and a “preview” org for testing. A group of companies that merged might each still have their own org. A large business might give each region or division its own.

Org2Org is the name of an integration in Okta’s application catalog that lets one org treat another org as if it were any other application. It does two big jobs:

Job 1

Single sign-on

A person signed in to the first org can open the second org without typing a password again. The first org vouches for them.

Job 2

Provisioning

People and groups created, changed, or removed in the first org are copied, changed, or removed in the second org automatically.

Analogy

Think of two offices of the same company in different cities. The head office keeps the staff register and issues badges that the branch office accepts at the door. When someone joins or leaves, head office sends a note, and the branch office updates its own register. Org2Org is the note-sending and the badge-accepting.

Source
The org that sends
Target
The org that receives
Sign-in
Trust across orgs
Sync
People and groups copied
i
Note

Okta changes its product often. Names of screens, options, and limits may differ from what you read here, and what the word “Basic” covers can vary with product version and licensing. This post uses “basic” to mean the standard, straightforward setup: sign-in trust plus user and group provisioning. Always confirm details against current Okta documentation for your organization.

BBuilding Blocks in Plain Words

Ten small ideas explain the whole subject.

Block

Org

One Okta environment with its own address, people, applications, and rules.

Block

Source org

The org that holds the official list of people and acts as the trusted sign-in provider. Also called the hub or parent.

Block

Target org

The org that receives people and trusts the source. Also called the spoke or child.

Block

Application

In the source org, the target org appears as an application tile named for the Org2Org integration.

Block

Single sign-on

Signing in once and reaching other places without more prompts.

Block

Provisioning

Automatically creating, updating, and deactivating accounts in another system.

Block

API token

A long secret code that lets the source org act as an administrator in the target org when copying people.

Block

Group push

Copying a group, and its members, from the source org to the target org.

Block

Attribute mapping

The table that says which piece of information in one org matches which piece in the other.

Block

Assignment

Choosing which people and groups in the source org are allowed to use the connection.

How the pieces fit

In the source org, an administrator adds the Org2Org application and fills in the details of the target org. The administrator gives the source org a secret key for the target, chooses which people and groups to send, and decides how their information should be translated. From then on, the source org keeps the target org up to date and vouches for its people at sign-in.

PieceWhere it livesEveryday comparison
Staff registerSource orgHead office’s official list of employees
Connection applicationSource orgThe courier route between head office and the branch
API tokenCreated in target org, stored in source orgA signed permission slip letting the courier update the branch register
Group pushSource org to target orgSending the team lists along with the names
Sign-in trustSet up on both sidesThe branch door accepting head office badges
MappingSource org settingsA translation sheet between two forms

WWhy Would a Company Have More Than One Org?

Several honest, everyday reasons lead to a second org. Knowing them tells you what the connection must achieve.

SituationWhat happenedWhat Org2Org does for it
Mergers and acquisitionsTwo companies joined, each with its own orgLets staff of one reach the other’s tools while the orgs are combined or kept apart
Test and productionA preview org is used to try changes before the real oneCopies sample people and groups to the test org so tests resemble real life
Divisions or regionsEach business unit runs its own org for independence or lawKeeps a central directory in sync with local ones
Customers or partnersA separate org holds outside usersLets selected insiders reach partner tools without new passwords
Different productsOne org for employees and another for something elseShares the people that belong in both
MigrationThe company is moving from an old org to a new oneCarries people across in a controlled way
Analogy

A family with a home in the city and a cabin in the mountains does not keep two completely separate sets of keys, bills, and addresses. They keep one master list and make sure the cabin knows who may stay. Having two places is normal; keeping them in step is the work.

i
Tip

Before building the connection, write one sentence that begins “We need this because…” If you cannot finish it clearly, pause. Org2Org is simple to switch on but harder to switch off safely once people depend on it.

TThe Hub-and-Spoke Picture

One org sends; the other receives. Keeping that direction clear prevents most confusion.

The most common arrangement is a hub-and-spoke picture. The source org is the hub and holds the authoritative list of people. One or more target orgs are spokes. Information flows from the hub to each spoke. Sign-in trust flows the same way: spokes trust the hub.

flowchart TD
  HR["Authoritative people list - for example the HR system"] --> SRC["Source org - the hub"]
  SRC -- "Users and groups copied" --> T1["Target org A"]
  SRC -- "Users and groups copied" --> T2["Target org B"]
  SRC -- "Sign-in trust" --> T1
  SRC -- "Sign-in trust" --> T2
  T1 --> A1["Applications in org A"]
  T2 --> A2["Applications in org B"]
    
Figure 1: The source org feeds and vouches for each target org

Why direction matters

In the basic setup, the target org receives people from the source org. It is not designed to send changes back. If someone edits a person’s details directly in the target org, the next update from the source may overwrite those edits, or the two orgs may drift apart. Decide in advance where each piece of information is allowed to be changed. This idea is called the source of truth.

!
Watch out

Never let two orgs both believe they are the master list for the same people. They will fight, and the loser is whichever person happens to be edited last. Choose one source of truth for each group of people and each piece of information.

WWhat “Basic” Includes and What It Leaves Out

A basic setup does the essentials well. Knowing the edges stops you from expecting the wrong things.

Included in a basic setupUsually left for later or for other tools
Sending people from source to targetTwo-way merging of changes
Updating people when their details changeComplex rules that decide between conflicting changes
Deactivating people who leaveDeleting accounts permanently with approval flows
Pushing groups and their membersAutomatic mapping of every application assignment
Sign-in trust from source to targetFine-grained control of administrator powers in the target
Simple attribute mappingHeavy custom transformations and lookups
Manual setup and review by administratorsFully automated rebuilding of whole orgs
Analogy

A basic bicycle has two wheels, pedals, brakes, and a chain. It gets you across town. You do not need gears, lights, and a basket to start, though you may add them later. A basic Org2Org setup carries people and trust across; fancier needs can be added when you truly have them.

i
Note

Which options are available depends on your licenses and the version of Okta you run. If a screen mentioned here is missing for you, it may be a licensing difference or a name change. Ask your Okta contact before assuming something is broken.

TTwo Jobs: Sign-In Trust and Provisioning

These two jobs are separate. You can use one without the other, but they work best together.

Sign-in trustProvisioning
Question answered“Can this person get in without a new password?”“Does this person’s account exist and match?”
When it happensAt the moment of sign-inWhen people or groups change, and on a schedule
What movesA short signed message saying who the person isNames, emails, groups, and status
What breaks if missingPeople have to sign in twice, or cannot sign inPeople cannot be found or are out of date in the target
Main risksWrong trust settings, expired certificatesWrong mapping, overwriting data, stolen token

What happens if you use only one

If you set up sign-in trust without provisioning, the target org has nobody on its list, so the trusted visitor has no account to land in. Some setups can create the account on the spot, but this is easier to get wrong. If you set up provisioning without sign-in trust, the target org has the right people, but they still need separate passwords there. Most organizations want both.

Analogy

A guest list and a badge reader. The guest list says who is expected. The badge reader checks who is at the door. A party with only a list has no way to check people in, and a party with only a reader has no way to know who belongs.

HHow Sign-In Works Between the Orgs

Follow one person from the source org into the target org and see who trusts whom.

The sign-in trust uses a standard way of passing proof of identity called SAML (pronounced “sam-el”). In plain words, the source org writes a short digital note that says, “This is Priya, her email is such-and-such, I checked her myself just now.” The note is signed with a secret that only the source org holds, so the target can tell it is genuine. The target org checks the signature, trusts the note, and lets Priya in.

sequenceDiagram
  participant P as Person
  participant B as Browser
  participant S as Source org
  participant T as Target org
  P->>B: Click the target org tile
  B->>S: Ask the source org to sign the person in
  S->>S: Check the person's session and rules
  S->>B: Return a signed identity note
  B->>T: Present the signed note
  T->>T: Check the signature and the person's account
  T->>B: Create a session in the target org
  B->>P: Show the target org
    
Figure 2: The source org signs a note and the target org trusts it
1

The person is signed in to the source org

They used their usual password and second factor there.

2

They open the target tile

The tile is an application in the source org’s dashboard.

3

The source org builds a signed note

The note carries the person’s username, email, and sometimes other facts.

4

The browser delivers it to the target org

The note travels through the person’s browser, not directly between the orgs.

5

The target org checks the note

It confirms the signature, the intended recipient, the time, and that it knows the person.

6

A session starts in the target org

The person is in without typing another password.

i
Tip

The target org does not need to know the person’s password. It only needs to trust the source org’s signature. That is why protecting the source org’s sign-in is so important: everything downstream relies on it.

HHow People Are Copied Between the Orgs

Provisioning is a conversation between the two orgs, carried out by machines on behalf of administrators.

When someone is assigned to the Org2Org application in the source org, or when their information changes, the source org sends a request to the target org. The request uses the target org’s management interface, which is the same interface administrators and tools can use to manage users. The source org proves it has permission by presenting an API token created in the target org.

sequenceDiagram
  participant A as Administrator
  participant S as Source org
  participant T as Target org
  A->>S: Assign a person or group to the connection
  S->>S: Prepare the person details using the mapping
  S->>T: Request - create this user, with the API token
  T->>T: Check the token and permissions
  T->>T: Create the user
  T->>S: Confirm success
  Note over S,T: Later changes are sent the same way
  A->>S: Change the person details
  S->>T: Request - update this user
  A->>S: Remove the assignment
  S->>T: Request - deactivate this user
    
Figure 3: The source org creates, updates, and deactivates people in the target org

The three lifecycle actions

Create

New person appears

A person assigned in the source org gets a matching account in the target org.

Update

Details change

A name, title, or department change in the source org is passed on to the target.

Deactivate

Person leaves or is unassigned

The target account is switched off, so access ends without anyone remembering to do it.

!
Watch out

Automatic deactivation is a benefit and a danger. If an assignment is removed by mistake, many people can lose access in minutes. Always test with a few people before assigning large groups, and know how to restore access quickly.

BBefore You Begin: A Preparation Checklist

Most Org2Org troubles begin before anyone touches a setting. A little preparation saves days.

QuestionWhy it matters
Which org is the source and which is the target?Everything else follows from the direction
Who owns each org?You need approval and a person who can create tokens and apply changes on both sides
Which people should be copied?Start with the smallest sensible set
Do any of these people already exist in the target?Duplicates and conflicts are the top cause of trouble
Which username format does each org use?People are matched by username, so formats must line up
Which groups should be copied?Groups carry application access, so they need care
Which attributes must travel?Decide the mapping before you build it
Who is the source of truth for each attribute?Avoids two orgs editing the same fact
Is there a test pair of orgs?Try everything on the test pair first
Which licenses and limits apply?Extra users may count toward costs and rate limits
What is the rollback plan?Know how to stop and undo before you start
i
Tip

Write the answers on one page and share it with both org owners. A single page of agreed answers prevents the classic argument of “I thought you were handling that.”

SSetting It Up, Step by Step

Here is the whole process in plain words. Screen names may differ, but the order of ideas stays the same.

1

Prepare the target org

Create a dedicated service account with only the permissions needed to manage users and groups. Do not use a personal administrator account.

2

Create an API token in the target org

Sign in as the service account and create a token. Copy it once, because it is shown only at creation, and store it in a safe secret keeper.

3

Add the Org2Org application in the source org

Find it in the application catalog, give it a clear label such as the target org’s purpose, and enter the target org’s web address.

4

Set up the sign-in trust

Exchange the details each side needs: the address the note should be sent to, the name of the sender, and the certificate used to verify signatures. The catalog entry guides you through this.

5

Enable provisioning

Paste the API token, test the connection, and choose which actions to send: create, update, and deactivate.

6

Review the attribute mapping

Check that each source field lands in the right target field.

7

Assign a tiny test group

Choose two or three test people. Watch them arrive in the target org.

8

Test sign-in

Have a test person open the target through the source tile. Confirm they land in the right account.

9

Test change and removal

Edit a test person’s title, then unassign them, and confirm the target follows.

10

Widen in stages

Add more people and groups in waves while watching the logs.

11

Document and hand over

Record owners, token location, renewal dates, and the rollback plan.

!
Watch out

Do the whole sequence in a test pair of orgs first. A mistake in the real target org, such as assigning too many people, can create thousands of accounts before you notice.

TThe API Token and the Service Account

The token is the key that opens the target org to the source org. Treat it like the master key to a building.

An API token is a long secret string. Anyone holding it can do whatever the token’s owner is allowed to do, without a password or a second factor. The source org stores the token and presents it with every request to the target org. That is convenient for automation, and dangerous if the token leaks.

Rule

Use a dedicated account

Create a service account in the target org just for this connection, named so that everyone understands its purpose.

Rule

Give the least power

Allow only what provisioning needs. Do not make the account a super administrator unless there is no alternative.

Rule

Store the token safely

Keep a copy in a proper secret keeper, never in email, chat, or a shared document.

Rule

Know the expiry habits

Tokens may lapse after a period of no use, and they stop working if the owner account is deactivated or changed.

Rule

Plan rotation

Replace the token on a schedule and whenever someone with access leaves the team.

Rule

Limit where it can be used

If your Okta settings allow it, restrict use of the token to the source org’s known network addresses.

Analogy

A courier who carries a signed permission slip to update the branch register is useful. If the slip is photocopied and handed around, anyone can alter the register. The slip should be kept in a locked drawer, reissued often, and tied to one courier.

!
Watch out

A very common failure is a token owned by a real person. When that person leaves and their account is deactivated, the token stops working, and provisioning silently stops. Use a service account that has a clear owner and survives staff changes.

AAttribute Mapping: Translating Between the Orgs

Two orgs may name the same fact differently. The mapping is the dictionary between them.

Every person in an org has a profile: a set of facts such as first name, last name, email, username, title, department, manager, and phone. These facts are called attributes. The source org and the target org may both have an attribute for “department,” but one might call it department and the other division. The mapping tells the source org which of its facts to put into which of the target’s slots.

Source attributeTarget attributeNotes
UsernameUsernameThe key used to match people. Formats must agree
First nameFirst nameStraightforward
Last nameLast nameStraightforward
EmailEmailOften used for notifications, so it must be valid
TitleTitleOptional but useful
DepartmentDepartmentMay drive group rules in the target
ManagerManagerBe careful: it refers to another person who must also exist in the target
Employee identifierEmployee identifierHelps match the same person across systems

Questions to ask for each attribute

  • Does the target truly need it, or are we copying it only because we can?
  • Does it contain private information that should stay in the source org?
  • Do both orgs allow the same values, or does the target have a stricter list?
  • Can the target org also edit it, and if so, which version wins?
Analogy

Imagine copying names from a form that says “Surname” onto a form that says “Family Name.” A helpful clerk with a note taped to the desk saying “Surname goes in Family Name” makes no mistakes. The mapping is that note, and it should be written down and reviewed.

i
Tip

Send only what the target needs. Every extra attribute increases privacy exposure, the chance of mapping mistakes, and the work required when either org changes its profile.

MMatching People: Usernames and Identity

The target org must recognize that “Priya in the source” and “Priya in the target” are the same person.

When the source org sends a person to the target, the target must decide: is this a new person, or one that already exists? The usual clue is the username, which in Okta is typically an email-style address and must be unique within an org. If the same username already exists in the target, the connection can either match the existing person or fail with a conflict.

CaseWhat happensWhat to do
Person does not exist in targetA new account is createdNormal, expected path
Person already exists with the same usernameThe orgs may link the accounts, or report a conflict, depending on settingsReview these before widening the rollout and decide to link or clean up
Different usernames for the same humanThe target sees two peopleAlign formats first, using a mapping rule or cleaning the data
Same username belongs to two different humansOne person might receive the other’s accountResolve before connecting, since this is a serious mix-up
Username changes in sourceThe target must be told to rename, or a duplicate may appearTest renames explicitly
!
Watch out

Matching by username alone can connect the wrong two people, for example when an old account name has been reused for a new employee. Add a stable unique identifier, such as an employee number, to your checks before trusting a match.

Everyday example

After a merger, one company uses email-style usernames based on first name and surname, while the other uses short codes. A mapping that creates target usernames in the target’s style, built from the source email, avoids a mess. Without it, the same person would appear twice, once under each style.

GGroups and Group Push

Groups save work, because access follows them. Sending them across is a major part of the connection.

In Okta, a group is a named collection of people, such as “Finance” or “Engineering.” Applications and policies are often assigned to groups rather than to individuals. Group push is the feature that creates matching groups in the target org and keeps their membership in step with the source.

flowchart LR
  subgraph SRCG ["Source org"]
    G1["Group: Finance"]
    U1["Priya"]
    U2["Arjun"]
    U1 --> G1
    U2 --> G1
  end
  subgraph TGTG ["Target org"]
    G2["Group: Finance - pushed copy"]
    U3["Priya - copy"]
    U4["Arjun - copy"]
    U3 --> G2
    U4 --> G2
  end
  G1 -- "Group push" --> G2
    
Figure 4: A pushed group appears in the target with the same members

Cautions about groups

Care

Name collisions

If the target already has a group with the same name, decide whether to link to it or rename. Silent merging can give people unexpected access.

Care

People must be copied first

A group can only contain people who exist in the target. Make sure members are assigned to the connection too.

Care

Groups carry power

If a pushed group is already tied to applications or rules in the target, membership changes there immediately change access.

Care

Prefer a naming convention

Use prefixes that show where a group came from, so nobody edits a pushed group in the target and expects it to stick.

Analogy

Sending a team list along with each employee note means the branch office can seat the team together without redoing the roster. But if the branch already has a “Finance team” list that means something different, sending ours on top of it can confuse everyone.

CChoosing Who Is Included

Assignment decides who is sent and who is trusted. Smaller scopes are safer scopes.

Only people and groups assigned to the Org2Org application in the source org are copied and allowed to sign in to the target through it. Assigning “Everyone” is quick but sends everyone, including people who have no business in the target. A careful administrator assigns by purpose.

Scope choiceGood forRisk
Everyone in the sourceOrgs that truly share a whole workforceCopies people who do not need the target; larger blast radius
A department or role groupA division that works in the targetNeeds the group to be accurate
A project groupTemporary shared workMust be removed when the project ends
A hand-picked listPilots and special casesBecomes stale and hard to audit
i
Tip

Create a dedicated group in the source org named for the connection, such as “Target Org Access.” Assign that single group to the application. Controlling the group controls the connection, and the group’s membership tells auditors exactly who is covered.

SSource of Truth and Drift

When two copies of the same fact exist, they eventually disagree unless someone decides which one counts.

After provisioning begins, each person exists twice: once in the source and once in the target. The two records are supposed to match, but they can drift apart in several ways: an administrator edits the target directly, the target has local rules that change attributes, or an update fails and nobody notices.

Cause of driftExamplePrevention
Direct edits in the targetA target administrator fixes a typo in a nameRestrict editing of provisioned attributes; teach staff to fix at the source
Failed updatesA temporary outage blocks a changeWatch for provisioning errors and retry
Local rules in the targetA rule changes the departmentDocument which attributes are controlled where
Mapping changesA new mapping applies only to new peopleRe-sync after any mapping change
Deleted or recreated accountsSomeone deletes a target account by handRestrict deletion rights; reconcile regularly
Analogy

Two photocopies of the same list, kept in separate offices, begin to differ the moment someone pencils a correction on one. Unless the corrections are always made on the original and re-copied, the lists slowly stop agreeing.

A calm approach

Decide, attribute by attribute, who may change it. Write it in a short table that every administrator of both orgs can see. Then run a regular comparison that lists people who differ between the orgs, and fix differences at the source.

JJoiners, Movers, and Leavers Across Two Orgs

Every person’s life at work passes through three moments. Both orgs must follow each one.

EventWhat the source doesWhat the target should do
JoinerCreates the person and adds them to the right groupsReceives the person and group memberships automatically
MoverChanges department, title, or groupsUpdates the profile; gains and loses group-based access
LeaverDeactivates the personDeactivates the matching account; sessions end
Long absenceMay suspend the personShould not allow sign-in until the person returns
RehireReactivates or recreates the personReactivates the matching account without creating a duplicate
1

HR system changes

The authoritative record is updated.

2

Source org follows

The person is created, changed, or deactivated.

3

Provisioning runs

The source org sends the change to the target.

4

Target org updates

Account and group membership change accordingly.

5

Sessions and tokens end

For a leaver, existing sessions in both orgs should be cleared.

!
Watch out

Deactivation in the target may not instantly end a session that already exists, and applications reached from the target may hold their own sessions and tokens. For a leaver, plan to clear sessions and revoke tokens in both orgs.

SStarting From the Source or the Target

People may begin their journey at either org. Both starting points should be planned.

Starting pointHow it worksTypical experience
From the source dashboardThe person clicks the target tile. The source sends a signed note straight to the targetSmooth, one click
From the target addressThe person types the target org’s address. The target must know to send them to the source to sign inSmooth only if routing is configured; otherwise they see a local sign-in page

When the person begins at the source, the process is called IdP-initiated sign-in, because the identity provider starts it. When they begin at the target, it is called SP-initiated, because the service provider starts it. The target org can be configured to treat the source as an identity provider and to route certain people, for example those with a company email domain, to the source automatically.

flowchart TD
  S1["Person opens the target address directly"] --> R{"Does a routing rule match this person?"}
  R -- Yes --> SRC["Redirect to the source org to sign in"]
  SRC --> BACK["Signed note returns to the target"]
  BACK --> IN["Person is in the target org"]
  R -- No --> LOC["Target's own sign-in page"]
    
Figure 5: Routing rules decide whether a target visit goes to the source for sign-in
i
Tip

Plan one or two fallback administrators in the target org who sign in locally, outside the routing rule. If the source org has an outage, someone must still be able to reach the target to fix things.

PProof of Identity: Who Does the Second Factor?

When one org vouches for a person to another, the strength of the vouching matters.

Suppose the source org checks a password and a fingerprint, then vouches for the person to the target. The target accepts that note. If the source org’s sign-in was weak, for example a password alone, the target has inherited that weakness without knowing it. The strength of the chain is the strength of its weakest link.

Choice

Strong rules at the source

Make sure the application tile for the target is protected by strong sign-in rules in the source org, appropriate to what lives in the target.

Choice

Extra checks at the target

Some setups ask the target org to ask again for a second factor for sensitive actions, even though the source already verified the person.

Choice

Pass the method along

Where supported, the note can say how the person proved themselves, so the target can decide whether that is enough.

Choice

Treat administrators separately

Administrators of the target should have stricter requirements than ordinary users.

Analogy

If a school accepts a note from another school’s teacher saying “this child is well and able to attend,” the note is only as trustworthy as the teacher’s checking. Schools that care about safety agree on how strict the checking must be before they trust each other’s notes.

TTwo Sessions, Two Clocks

Being signed in to the source does not mean being signed in to the target forever.

Each org has its own session rules. When a person arrives in the target through the trust, the target starts its own session with its own lifetime and idle limit. Ending the source session does not necessarily end the target session, and the other way around.

EventEffect on the source sessionEffect on the target session
Person signs out of the sourceEndsMay remain until its own limits end
Person is idle in the targetUnchangedEnds when the target’s idle limit is reached
Administrator clears sessions in the sourceEndsNot automatically ended
Person is deactivated in the sourceEndsEnds when provisioning deactivates the target account, or when a session check next fails
!
Watch out

When responding to a stolen device or a leaver, clear sessions in both orgs. Clearing only the source leaves an open door in the target.

AAdministrators in Two Places

Administrator powers deserve extra care when two orgs are tied together.

The source org can create accounts in the target org. If the service account behind the API token is too powerful, anyone who controls the source org can effectively control the target org. This is a trust relationship in one direction, and it should be designed deliberately.

QuestionSafer answer
Should provisioned people receive administrator roles in the target?No, not by default. Grant target administrator roles locally and with approval
Should the service account be a super administrator?Avoid it. Give only the rights needed to manage users and groups
Should source administrators automatically be target administrators?No. Separate duties reduce the damage of one stolen account
Who may change the connection settings?A short named list in the source org, reviewed regularly
What if the source org is compromised?Have a plan to disable the connection and revoke the token from the target side
Analogy

Two companies sharing a building might agree that each can enter the other’s lobby, but not the other’s vault. Giving the neighbour a master key because it is convenient is how a break-in at one company becomes a break-in at both.

TTesting With a Pair of Preview Orgs

The best place to make mistakes is a place where mistakes are free.

Okta offers preview or sandbox orgs designed for experiments. Build a test pair that mirrors the real pair as closely as possible: similar usernames, similar groups, a few dozen representative people. Then run through every scenario in this post before touching production.

TestExpected result
Assign one new personAccount appears in the target with correct attributes
Change that person’s title and departmentTarget profile updates
Add the person to a pushed groupGroup membership appears in the target
Open the target through the source tilePerson lands signed in, in the correct account
Open the target address directlyRouting sends them to the source, or shows the local page, as designed
Unassign the personTarget account is deactivated
Reassign the personTarget account is reactivated, with no duplicate
Create a person that already exists in the targetBehavior matches your decision: link or conflict
Revoke the tokenProvisioning fails visibly and an alert fires
Rotate the signing certificateSign-in continues after the planned update
i
Tip

Keep the test pair alive after launch. Every future change, such as a new mapping or a new group, should be rehearsed there before it reaches production.

RRolling Out in Waves

A careful rollout feels slow on day one and fast on day thirty.

1

Wave zero: administrators only

Two or three administrators from each side try everything and note surprises.

2

Wave one: a friendly pilot

A small team that will give honest feedback. Watch provisioning logs closely.

3

Wave two: one department

Test groups, dashboards, and help desk readiness.

4

Wave three: everyone in scope

Assign the remaining groups in batches, not all at once, to stay inside rate limits.

5

Review and settle

Compare records between the orgs, clear differences, and update the documents.

i
Note

Okta places limits on how many requests an org can handle in a short time. Copying thousands of people at once can run into those limits and slow other work. Spread large assignments over time and check current limits in the documentation.

SSecurity: What Can Go Wrong

A link between two orgs is also a link for attackers. Knowing the likely attacks tells you where to place the locks.

ThreatHow it worksDefense
Stolen API tokenAn attacker finds the token in a document or a log and manages the target orgSecret keeper, least-power account, rotation, network restriction, alerts
Compromised source administratorAn attacker in the source org assigns themselves to the target or changes the mappingStrong sign-in for source administrators, change review, logging
Weak sign-in at the sourceThe target trusts notes from a source that accepted a weak proofStrong rules for the target tile in the source org
Over-broad assignmentToo many people are copied and trustedSmall named groups, review membership
Privilege creepPushed groups grant target administrator powers by accidentKeep administrator roles local and approved
Forged or replayed sign-in notesAn attacker tries to reuse or fake a signed noteValid signature and time checks, short lifetimes, correct certificates
Dormant leftoversAccounts remain active in the target after the person leftReliable deactivation and regular comparison
Phishing of administratorsA fake page captures an administrator’s sign-inPhishing-resistant factors for administrators in both orgs
Analogy

A bridge between two castles is useful for traders, but it also gives enemies a road. Sensible rulers put a gate at each end, guard the keys, count who crosses, and know how to raise the bridge in an emergency.

The “raise the drawbridge” plan

Write down, in advance, the steps to cut the connection quickly if either org is suspected to be compromised: disable provisioning in the source, revoke the token in the target, turn off the sign-in trust, and clear sessions in both orgs. A plan written during an emergency is rarely a good plan.

!
Watch out

Remember that trust is transitive in practice. If org C trusts org B, and org B trusts org A, then someone who breaks into A may reach C. Draw the whole chain of trust on one diagram and review it regularly.

CCertificates and Keeping Trust Alive

Signed notes need keys. Keys expire. Plan for it before it happens.

The signature on each sign-in note is made with a certificate: a digital document that holds a public key and has an end date. The target org keeps a copy of the source’s certificate so it can check signatures. When the certificate expires or is replaced, the target must learn about the new one. If it does not, every sign-in fails with a signature error, and people are suddenly locked out of the target.

1

Record the expiry date

Put it in a shared calendar with reminders at ninety, thirty, and seven days.

2

Create the new certificate in advance

Generate it in the source org without making it active yet.

3

Share it with the target

Update the target org so that it can accept the new certificate.

4

Switch over at a quiet time

Activate the new certificate and test sign-in with a few people.

5

Retire the old certificate

After everything works, remove the old one.

Item that expires or changesEffect when forgotten
Signing certificateSign-in into the target fails for everyone
API tokenProvisioning stops quietly
Service account password or statusToken stops working
Network address allow-listsRequests are refused if addresses change
i
Tip

Keep a short “keys and dates” register for each connection: what expires, when, who renews it, and how to test afterwards. Most Org2Org outages that surprise people are simply forgotten expiry dates.

PPrivacy, Compliance, and Data Boundaries

Copying people from one place to another is also copying personal data. Laws and contracts care about that.

Many organizations keep separate orgs on purpose: for different countries, subsidiaries, or customers. Rules may limit what personal information can move between them, or where it can be stored. Before connecting, ask whether moving each attribute is allowed and needed.

TopicQuestion to ask
Data locationDo any rules require people from one region to stay in an org hosted in that region?
Data minimizationAre we copying only the facts the target truly needs?
Legal entity boundariesAre the two orgs run by separate legal entities that need an agreement for sharing employee data?
PurposeIs the reason for the copy documented and acceptable?
RetentionHow long is a deactivated person’s record kept in the target?
Access to recordsWho can read the copied personal information in the target?
AuditCan we show who was sent, when, and why?
i
Note

This post gives general ideas, not legal advice. Ask your privacy and legal teams about cross-border and cross-entity sharing before you copy people between orgs.

Everyday example

A group has a parent company org and a subsidiary org in a country with strict rules about employee data. The parent sends only name, work email, and department to the subsidiary, and nothing about home address or personal phone. The mapping documents this decision, and the privacy team signs it off.

RReliability, Limits, and Retries

Two systems talking over the internet will sometimes fail. Good design expects it.

Provisioning happens by sending requests across the internet. Networks drop, services restart, and Okta limits how fast any org may send or receive requests. A healthy connection copes with these things by retrying and by reporting what it could not do.

Fact

Rate limits exist

Large batches may be slowed or temporarily refused. Spread changes over time.

Fact

Retries help, not forever

Temporary failures often fix themselves. Permanent failures, such as a bad mapping, need a human.

Fact

Failures can be quiet

If nobody watches the logs, a stopped sync looks exactly like a working one until someone’s account is wrong.

Fact

The source is a single point

If the source org has an outage, new people and changes wait. Sign-in into the target through the source also waits.

Planning for bad days

FailureWhat people noticePreparation
Source org unavailableCannot sign in through the source; changes do not flowLocal emergency administrators in the target; communication plan
Target org unavailableTile fails; provisioning errors pile upAlert on errors; retry after recovery
Token invalidNew starters are missingAlert on provisioning failures; renew quickly
Certificate expiredSign-in errors for everyoneExpiry calendar and rehearsed renewal
Large batch hits limitsSlow or partial copyingBatch in waves and watch progress

MMonitoring, Logging, and Metrics

You cannot fix what you cannot see. A few simple measurements tell you whether the connection is healthy.

Both orgs write records of what happens: sign-ins, provisioning actions, errors, and administrative changes. Reading these on a schedule, or sending them to a central system, catches problems early.

MeasureWhat it tells youIf it looks bad
Provisioning failures per dayWhether copying worksRead the error; usually token, mapping, or conflict
People assigned versus people present in the targetWhether the orgs agreeInvestigate missing or extra accounts
Sign-in errors into the targetTrust healthCheck certificates, clocks, and settings
Time from change to arrivalSpeed of syncLook for rate limits or outages
Changes to connection settingsWho is altering the linkAlert on unexpected changes
Token and certificate ageUpcoming expiriesRenew early
Deactivations that did not arriveLeaver riskFix immediately and review the cause

Alerts worth having

  • Any provisioning failure that repeats more than a few times.
  • Any change to the connection’s mapping, token, or assignments.
  • Any new administrator role in the target.
  • Any sign-in error spike into the target.

GGovernance, Ownership, and Change Control

A connection with no owner is a connection waiting to fail.

Practice

Name an owner on each side

One named person or team in each org is responsible for the connection.

Practice

Write a one-page design

Direction, scope, mapping, source of truth, token location, expiry dates, rollback.

Practice

Two sets of eyes on changes

A second administrator reviews mapping and assignment changes before they go live.

Practice

Rehearse in the preview pair

Every change is tried in the test pair first.

Practice

Review twice a year

Check scope, tokens, certificates, and who has access.

Practice

Plan the exit

Know in advance how to disconnect the orgs cleanly if they merge or separate.

!
Watch out

Automation tools that manage the connection can also change who is trusted across orgs. Protect any script or pipeline that edits these settings as strictly as you protect an administrator.

DDesign Patterns That Work

These shapes have helped many organizations.

Pattern

One source of truth

Pick a single org, fed by the HR system, as the master list. All others receive.

Pattern

Connection group

A single group in the source controls who is sent. Add or remove people by editing that group.

Pattern

Least-power service account

The token owner can manage users and groups but not policies or administrators.

Pattern

Local break-glass administrators

Two emergency administrators in the target sign in locally and are watched closely.

Pattern

Staged waves

Pilot, department, everyone, with checks between each.

Pattern

Regular reconciliation

A monthly comparison of people in both orgs, fixing differences at the source.

Make the source the only place where people are edited, and the connection becomes boring in the best way.

Everyday example

A company with three regional orgs uses one global org as the hub. Each region’s staff are sent from the hub through a regional connection group. Regional administrators manage applications and policies locally, but cannot edit people, because people are edited only in the hub. Month-end reports show any person who differs between hub and region, and the global team fixes them in one place.

AAnti-Patterns to Avoid

These mistakes look sensible when made and cause trouble later.

AP-1Avoid
Token owned by a real person

When that person leaves or changes roles, the token stops and provisioning fails silently. Use a service account with a clear owner.

AP-2Avoid
Super-administrator service account

A token that can do everything turns a source-org breach into a target-org breach. Give the least power that works.

AP-3Avoid
Two masters for the same people

Letting both orgs edit the same attributes leads to overwrites and confusion. Choose one source of truth.

AP-4Avoid
Assigning “Everyone” on day one

A large first assignment can create thousands of accounts, hit limits, and expose mapping mistakes at scale. Start small and widen.

AP-5Avoid
Ignoring expiry dates

Letting certificates and tokens lapse produces outages that arrive without warning. Keep a register and calendar.

AP-6Avoid
Copying more attributes than needed

Every extra field adds privacy exposure and mapping work. Send only what the target needs.

AP-7Avoid
Never testing in a preview pair

Trying changes directly in production is how thousands of accounts are accidentally deactivated. Rehearse first.

AP-8Avoid
No way to reach the target if the source fails

If every administrator signs in through the source, an outage locks everyone out. Keep local emergency administrators.

BBest Practices and Common Mistakes

A short list to carry into a design meeting.

Best practices

  • Write down direction, scope, and source of truth before building.
  • Use a dedicated least-power service account for the token.
  • Store tokens in a proper secret keeper and rotate them.
  • Send only the attributes the target needs.
  • Control scope through a single connection group.
  • Test in a preview pair and roll out in waves.
  • Keep a keys-and-dates register for tokens and certificates.
  • Keep local emergency administrators in the target.
  • Compare the two orgs regularly and fix differences at the source.

Common mistakes

  • Skipping the check for existing duplicate accounts.
  • Letting administrators edit provisioned fields in the target.
  • Forgetting that pushed groups can carry real access.
  • Trusting a weakly protected source org.
  • Missing alerts, so a stopped sync goes unnoticed.
  • Clearing sessions in only one org after an incident.
  • Having no plan to disconnect the orgs.
  • Documenting nothing, so knowledge lives in one head.

TTroubleshooting: When Something Does Not Work

Split every problem into two questions: is it about sign-in, or is it about copying people?

flowchart TD
  S["Problem reported"] --> Q1{"Can the person sign in to the target?"}
  Q1 -- No --> Q2{"Does the account exist in the target?"}
  Q2 -- No --> P1["Provisioning problem - check assignment, token, mapping, conflicts"]
  Q2 -- Yes --> Q3{"Is the error about the signature or trust?"}
  Q3 -- Yes --> T1["Check certificate, clock, and trust settings"]
  Q3 -- No --> T2["Check account status, session rules, and routing"]
  Q1 -- Yes --> Q4{"Are the details or groups wrong?"}
  Q4 -- Yes --> P2["Check mapping, source of truth, and recent edits in the target"]
  Q4 -- No --> Q5{"Is access to applications wrong?"}
  Q5 -- Yes --> P3["Check group membership and application assignments in the target"]
  Q5 -- No --> D["Review the logs for the time of the problem"]
    
Figure 6: A short path for separating sign-in problems from copying problems
SymptomLikely causeFirst check
New person missing in the targetNot assigned, or provisioning failedAssignment and the provisioning error list
Everyone suddenly cannot copyToken invalid or service account changedToken status and owner account
Error that a user already existsDuplicate username in the targetExisting accounts and the link-or-conflict decision
Wrong department or titleMapping or target-side editMapping table and recent changes in the target
Group is empty in the targetMembers not yet copied, or push not enabledWhether members are assigned and the group push settings
Signature or assertion error at sign-inCertificate mismatch or clock differenceCertificate dates and server times
Person lands in the wrong accountUsername mismatch in the sign-in noteWhich attribute is used as the identifier
Leaver still has accessDeactivation failed or session still aliveTarget account status; clear sessions in both orgs
Direct target address shows a local pageNo routing rule matchedRouting rules and the person’s attributes
i
Tip

Always note the person, the time, and the exact message. The logs in both orgs can then be searched at that moment, and the cause usually appears within minutes.

RReal-World Scenarios

Four stories show Org2Org at work.

Scenario 1: The merger bridge

Two companies merge. For a year they keep separate orgs while systems are combined. The larger company’s org is the hub and sends a “Merger Project” group to the smaller company’s org so that project staff can reach shared tools. When the orgs are finally combined, the connection is switched off, accounts are matched on employee numbers, and the project group is retired.

Scenario 2: The test org that looks like real life

A team wants to test new sign-in rules without risking production. They connect production to a preview org and copy a sample of people and groups. They try rules on the preview copy, find a mistake that would have locked out the finance team, and fix it before touching production.

Scenario 3: The silent token

New joiners in a regional org were missing for two weeks. The cause was a token owned by an administrator who had left. Provisioning failed quietly. The team moved to a service account, added an alert on repeated failures, and put token renewal in the keys-and-dates register.

Scenario 4: The certificate surprise

On a Monday morning nobody could reach the regional org through the hub. The signing certificate had expired over the weekend. Because the team had local emergency administrators, they signed in directly, loaded the new certificate, and restored service within the hour. Afterwards they added the dates to a shared calendar with early reminders.

CCleaning the Data Before You Connect

A connection copies whatever it finds. If the data is messy, the mess is copied too.

Many Org2Org projects stall not because the connection is hard, but because the people lists on either side are untidy. Spelling differences, old accounts, shared mailboxes, and people who left long ago all show up as soon as two lists are compared. A short cleaning exercise before the first assignment is the cheapest insurance you can buy.

Problem foundWhy it hurtsCleaning step
Accounts for people who leftThey would be copied and given accessDeactivate them in the source before connecting
Duplicate people with different usernamesThe target ends up with two accounts for one humanMerge or remove duplicates and choose one username
Shared or generic accountsHard to attribute actions; unclear ownershipName an owner or retire them
Missing or wrong email addressesNotifications and matching failFix from the HR system
Inconsistent job titles and departmentsGroup rules and reports become unreliableAgree a short list of allowed values
Unclear manager linksManager attribute points at nobodyRepair the chain or leave it out of the mapping
Old groups nobody understandsThey would carry unknown access into the targetReview, rename, or delete before pushing
Analogy

Before moving house, sensible people sort their belongings and throw away broken things. Carrying a damaged chair across town costs the same effort as carrying a good one. Cleaning the people list before connecting is sorting before the move.

A simple cleaning routine

1

Export both lists

Get the people and groups from each org into a simple table.

2

Compare by a stable identifier

Match on employee number or similar, not just on name.

3

Sort the differences into piles

Same person, different person, only in one org, and unknown.

4

Decide each pile

Link, create, remove, or investigate.

5

Fix at the source

Correct the data in the authoritative place, not in the target.

i
Tip

Do the comparison with a small sample first. Fifty people reveal nearly every kind of problem that five thousand will, and they are far easier to examine by hand.

OOther Ways to Do the Same Job

Org2Org is one tool among several. Knowing the alternatives helps you choose honestly.

Connecting two Okta orgs is not the only way to share people and trust. Depending on your size and goals, another approach may be simpler or stronger. The table compares common choices in plain terms.

ApproachHow it worksBest whenWatch for
Org2Org (basic)Source org sends people and trust to a target orgYou have two or a few orgs and one clear hubOne direction only; token and certificate upkeep
Sign-in trust onlyThe target trusts the source’s sign-in but creates accounts on first use or by handYou need access but not a full copy of the people listAccount creation gaps; manual cleanup of leavers
Shared directory feeding both orgsA central directory or HR system feeds each org directlyYou have many orgs and a strong central sourceMore moving parts, but no org depends on another
Manual or spreadsheet loadingAdministrators import people by handOne-off or tiny setupsMistakes, delays, forgotten leavers
Merge into one orgCombine the orgs into a single environmentThe separate orgs no longer serve a purposePlanning effort; policy conflicts to settle
Analogy

Moving goods between two shops can be done with a courier, a shared warehouse, a handwritten delivery list, or by merging the shops. A courier is perfect for two shops with one supplier. A shared warehouse suits twenty shops. Choosing well depends on how many shops you have, not on which method sounds fanciest.

A simple way to choose

Choose

Org2Org

When one org is clearly the master and you have only a few receiving orgs.

Choose

A central feed

When many orgs need the same people and no single org should be special.

Choose

A merge

When the reason for separate orgs has disappeared and policies can be agreed.

Choose

Sign-in trust only

When people only visit the target occasionally and a full copy is unnecessary.

EEnding the Connection Cleanly

Every connection should have a planned ending, even if the ending is years away.

Orgs get merged, businesses are sold, and projects finish. When that day comes, you need to turn off the connection without locking people out or leaving dangerous leftovers. Thinking about the ending early makes the middle simpler.

What to decide before disconnecting

  • Will the people in the target keep their accounts, or be removed?
  • If they keep them, who becomes the source of truth for them afterwards?
  • How will they sign in once the source no longer vouches for them?
  • What happens to groups that were pushed from the source?
  • When will the API token and signing certificate be retired?
1

Announce and prepare

Tell affected people what will change and when. Make sure they can sign in locally in the target.

2

Take ownership of accounts

Decide who now manages people in the target and set local password and factor options.

3

Stop provisioning, keep accounts

Unlink the application in a way that leaves target accounts active, if that is the plan. Read the options carefully, because some choices deactivate everyone.

4

Turn off the sign-in trust

Remove the identity provider in the target or disable routing rules.

5

Revoke the token and retire the service account

Remove the key that allowed the source to manage the target.

6

Check and record

Verify sign-in, review the logs, and update the documentation.

!
Watch out

Removing the application from the source can, depending on settings, deactivate every provisioned account in the target. Read each prompt carefully, rehearse in the preview pair, and have a person ready to restore accounts if something goes wrong.

SSupport, Communication, and Cost

The technical part is only half the work. People need to know what is happening and who will help.

The help desk needs a short guide

When two orgs are connected, support questions change. “I cannot sign in” might mean the source, the target, the routing rule, or the person’s account state. Give the help desk a one-page guide that starts with the two big questions: did the person sign in to the source first, and does their account exist in the target.

What people sayWhat it may meanFirst step for the help desk
“The new tile does nothing.”Not assigned, or the account is not in the target yetCheck the assignment and the provisioning list
“It asks for a password I do not have.”Routing sent them to a local pageConfirm the routing rule and the person’s attributes
“My title is wrong in the other system.”Source data or mapping problemCheck the source record and recent edits
“I still can get in after leaving.”Session or deactivation delayCheck account status and clear sessions in both orgs

Telling people what is happening

Explain in plain language what the connection does, what changes for them, and where to ask for help. Most people only need to know: “Sign in at the usual place and click this tile.” A short announcement, a one-page guide, and a way to report problems prevent most frustration.

Counting the cost

Connections can affect licensing and capacity. Extra accounts in the target may count toward costs. Large batches use rate limits that other work also needs. Ask your Okta contact how licensing treats copied users and review the numbers before widening the scope.

i
Note

The cheapest connection is the one that sends only the people who truly need it. A smaller scope costs less, is easier to audit, exposes less personal data, and fails in smaller ways.

DDesigning the One-Page Connection Record

Every connection should fit on a single page that anyone on the team can read in five minutes.

When the original builder is on holiday, or has moved to another team, the next person should be able to understand the connection quickly. A one-page record makes that possible. It is not paperwork for its own sake; it is the thing that lets a worried administrator at two in the morning find the answer in seconds.

SectionWhat to write
PurposeOne sentence on why the connection exists and who benefits
DirectionWhich org is the source and which is the target
OwnersNamed people or teams on each side, with contact details
ScopeThe connection group, how it is filled, and how many people are expected
MappingThe attribute table, with the source of truth for each attribute
Service account and tokenAccount name, permissions, where the token is stored, renewal date
Sign-in trustCertificate dates, routing rules, and the plan for emergency administrators
MonitoringWhich alerts exist and who receives them
RollbackStep-by-step instructions to cut the connection safely
Review datesWhen the record was last checked and when it must be checked again
Analogy

A pilot flies with a checklist even after ten thousand hours, because forgetting one item can matter greatly. The one-page record is the checklist for the connection: short, clear, and always within reach.

i
Tip

Store the record where the on-call team can reach it even if Okta itself is unavailable. A perfect document that can only be opened through the very system that has failed is not much help.

AA Day Two Checklist: Keeping It Healthy

The launch is exciting. The years after the launch are where reliability is earned.

Once the connection is running, small regular habits keep it dependable. The table below groups them by how often they happen.

How oftenHabitWhy
DailyGlance at provisioning errors and sign-in errorsCatches stopped syncs within hours
WeeklyReview changes to the connection’s settings and assignmentsSpots unexpected edits early
MonthlyCompare people and groups between the orgsFinds drift before it grows
QuarterlyCheck the keys-and-dates register and test emergency administratorsPrevents expiry surprises and lockouts
Twice a yearReview scope, owners, attributes, and the need for the connectionKeeps the design honest
YearlyRehearse the rollback and an incident response drillMakes sure the plan still works
Habit

Watch the quiet

A silent log can mean everything is fine, or that nothing is running. Confirm periodically that alerts truly fire.

Habit

Test the unhappy path

Practise renewing a certificate and recovering from a revoked token while nothing is on fire.

Habit

Keep the preview pair fresh

Refresh test data now and then, so tests still resemble real life.

Habit

Share the knowledge

Make sure at least two people can run every step, so the connection never depends on one person.

A connection that is checked a little every week rarely needs rescuing.

AAdvantages, Disadvantages, and Trade-offs

The same features that save work also create new things to look after.

Advantages

  • One source of truth for people, instead of two lists kept by hand.
  • Single sign-on across orgs, with no extra passwords.
  • Joiners, movers, and leavers flow automatically.
  • Ready-made integration in Okta’s catalog, quick to start.
  • Useful in mergers, test setups, and multi-region designs.

Disadvantages

  • Creates a trust path between orgs that attackers may use.
  • Depends on tokens and certificates that expire.
  • The basic setup is one-directional and limited.
  • Mapping mistakes spread to many accounts quickly.
  • Needs clear ownership on both sides.
Trade-offLeaning toward convenienceLeaning toward safety
ScopeSend everyoneSend named groups only
Token powerBroad administratorLeast-power service account
AttributesCopy manyCopy few
RolloutAll at onceWaves with checks
Target administratorsInherit from sourceAssign locally with approval
i
Note

If you need two-way sync, complex transformation, or many orgs with a changing shape, a basic Org2Org setup may not be enough. Consider whether another approach, such as a central directory or a dedicated integration tool, is a better fit.

AA Simple Operating Model

A steady rhythm keeps the connection healthy year after year.

1

Design

Agree direction, scope, mapping, source of truth, and rollback on one page.

2

Build in the preview pair

Set up and test every scenario in the test orgs.

3

Roll out in waves

Administrators, pilot, department, everyone.

4

Watch

Alerts on failures, expiries, and unexpected changes.

5

Reconcile monthly

Compare the orgs and fix differences at the source.

6

Renew on schedule

Rotate tokens and certificates before they expire.

7

Review twice a year

Check scope, owners, and whether the connection is still needed.

flowchart LR
  A["Design"] --> B["Build in preview pair"]
  B --> C["Roll out in waves"]
  C --> D["Watch"]
  D --> E["Reconcile monthly"]
  E --> F["Renew on schedule"]
  F --> G["Review twice a year"]
  G --> A
    
Figure 7: A repeating cycle for looking after an Org2Org connection

TThree Complete Walkthroughs

Three people, one connection, and a clear reason behind each outcome.

Meera, a new engineer in the regional office

Meera is hired by the regional company, which runs its own Okta org connected to the global hub. The global HR system creates her record, and the hub org creates her account and adds her to the “Regional Engineering” connection group. Within minutes, the regional org has a matching account with the right name, email, and department. On her first morning she opens the hub dashboard, clicks the regional tile, and lands signed in without typing another password. She joins the engineering group automatically and sees her team’s applications.

Arjun, a manager who moves departments

Arjun moves from engineering to product. HR updates his department. The hub org changes his profile and moves him between groups. The connection sends the new department and group membership to the regional org. He loses access to engineering tools and gains the product tools without anyone in the region doing anything. A week later, a regional administrator tries to fix his job title directly in the regional org. The next update from the hub changes it back, and the administrator learns that fixes must be made at the source.

Kavita, the administrator who looks after the connection

Kavita owns the connection. On the first of each month she runs a comparison between hub and region. It shows one person present in the region but not in the hub. She finds the account was created by hand during an emergency, removes it, and records the reason. Her calendar warns her that the signing certificate expires in ninety days. She creates the new certificate, loads it into the test pair, and schedules the switch for a quiet Thursday morning. She also checks that the token owner account is healthy and that two emergency administrators in the region can still sign in locally.

When Org2Org works, nobody notices it, and every joiner, mover, and leaver simply happens.

GGlossary in Plain Words

Quick reminders for the words used most often.

TermPlain meaning
OrgOne Okta environment with its own address, people, and rules
Org2OrgAn Okta integration that connects one org to another
Source orgThe org that sends people and vouches for them at sign-in
Target orgThe org that receives people and trusts the source
Hub and spokeA design with one central org and several receiving orgs
Single sign-onSigning in once and reaching other places without more prompts
SAMLA standard way of passing a signed identity note between systems
Identity providerThe system that checks who a person is and vouches for them
Service providerThe system that trusts the identity provider and lets the person in
ProvisioningAutomatically creating, updating, and deactivating accounts
API tokenA long secret code that lets one system manage another
Service accountA non-human account used by a connection
AttributeOne fact on a person’s profile, such as title or department
MappingThe table linking source attributes to target attributes
Group pushCopying a group and its members to the other org
Source of truthThe place where a fact is allowed to be changed
DriftThe slow disagreement of two copies of the same data
CertificateA digital document with a key used to sign and check notes
IdP-initiated sign-inSign-in that starts at the source org
SP-initiated sign-inSign-in that starts at the target org
Preview orgA test Okta environment for safe experiments
Break-glass administratorAn emergency account used only when normal sign-in fails

FFrequently Asked Questions

Q1What does Org2Org actually do?
It connects one Okta org to another. The source org can send people and groups to the target org automatically and can vouch for those people when they sign in to the target.
Q2Is it two-way?
The basic setup is mainly one-directional, from source to target. Changes made directly in the target may not flow back and can be overwritten. Decide a source of truth in advance.
Q3Do I need both sign-in trust and provisioning?
Not strictly, but most organizations want both. Provisioning makes sure the person has an account; sign-in trust lets them in without a new password.
Q4What is the API token for?
It lets the source org act on the target org to create, update, and deactivate people and groups. Treat it like a master key and store it safely.
Q5Who should own the token?
A dedicated service account with only the permissions provisioning needs, not a personal administrator who may leave or change roles.
Q6What happens if a person already exists in the target?
Depending on your settings, the accounts may be linked or a conflict may be reported. Review such cases before widening the rollout.
Q7Are administrator roles copied across?
Treat administrator roles as local to each org and assign them deliberately. Do not let a pushed group grant administrator powers by accident.
Q8Why did everyone suddenly fail to sign in to the target?
A common cause is an expired or changed signing certificate. Check certificate dates and clocks, and use local emergency administrators to fix it.
Q9Why did new people stop appearing?
The token may be invalid, the service account may be deactivated, or a mapping or conflict may be blocking creation. Look at the provisioning error list in the source org.
Q10Does deactivating someone end their access immediately?
It stops new sign-ins, but existing sessions and tokens may continue until they expire. Clear sessions in both orgs for urgent cases.
Q11Can I test this safely?
Yes. Use a pair of preview or sandbox orgs that mirror production, and rehearse every scenario and every future change there first.
Q12Will the screens look exactly as described?
Not exactly. Okta changes names, layouts, and what a basic setup includes over time and by license. Use this post for the ideas and confirm exact steps against current Okta documentation.

SSummary and Key Takeaways

One org sends, one org trusts, and someone looks after the link.

Org2Org lets one Okta org send people and groups to another and vouch for them at sign-in. The source org holds the truth, the target org receives it, and a token and certificate hold the connection together. The best setups are small in scope, strict about who has power, careful about attributes, tested in a preview pair, rolled out in waves, and watched for expiries and failures. The worst setups give too much power to a token, let two orgs edit the same facts, or forget that keys expire.

Key Takeaways

  • Org2Org connects a source org to a target org for two jobs: sign-in trust and provisioning of people and groups.
  • Choose one source of truth for people and attributes, and make fixes there, because the basic setup mainly flows one way.
  • Use a dedicated least-power service account for the API token, store it safely, and rotate it.
  • Control scope with a single connection group, send only needed attributes, and keep administrator roles local and approved.
  • Protect the source org’s sign-in strongly, because the target inherits its trust, and clear sessions in both orgs during incidents.
  • Keep a keys-and-dates register for certificates and tokens, keep local emergency administrators, and alert on provisioning failures.
  • Test in a preview pair, roll out in waves, reconcile regularly, and confirm exact Okta screens and options against current documentation.