New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

Setup links for directory sync

The Setup link is used to create a shareable link that can be used to create an Directory Sync without exposing any sensitive information. Let's go through the steps to create a new Setup link.

You can create a new setup link for Directory Sync from the Connections page using New Setup Link button

dsync connections page

Another way is to go to the Setup Links section under Directory Sync menu and Click on Create New/New Setup Link button

dsync setup link list empty

The create Setup Link for Directory Sync page looks like below

dsync setup link create page

Once the link is created you can see the the link info section at the bottom

setup link created

You can copy the link by clicking on the Copy button

setup link copied

You can regenerate the link by clicking on Regenerate button

setup link regenerate init

Once you confirm Regenerate action you will see the new setup link in the link info section

setup link regenerated

Regenerating issues a new URL and invalidates the previous one straight away. Share the new link with whoever is setting up the connection: a URL copied from the link info section earlier no longer opens the setup page.

Setup links expire, three days after creation by default. Creating a setup link for a tenant and product whose link has already expired renews it, and renewal behaves like regenerating — you get a new URL, and the expired one stays invalid.

The same applies to the /api/v1/dsync/setuplinks endpoint: it returns the current link unchanged while that link is still valid, and issues a new URL when you pass regenerate: true or when the existing link has expired.

To read or delete a link through /api/v1/dsync/setuplinks, pass its id, or the tenant and product it was created for. A request with neither is rejected with a 400, and so is a GET /api/v1/dsync/setuplinks/product request without a product.

You can perform ACTIONS like Copy, View, Regenerate & Delete from this page

setup link list page

When you open the setup link you will see the following

setup link page dsync

Create Directory Sync connection​

You can open create Directory Sync by clicking on New Directory button & filling the correct details

dsync setup link created

After creation of the directory sync you will see the info section

dsync created info