Directory Sync Widget
A widget for managing Directory Sync connections in the Admin Portal.

The <DirectorySync /> widget enables users to manage Directory Sync connections in the Admin Portal. It displays the directory status, metadata, and callout messages.
SCIM directories, such as Okta and Microsoft Entra ID, receive pushed updates and do not have sync runs. The widget does not display a “Last sync” timestamp for these directories.
In order to use the Directory Sync widget, a user must have a role that has the widgets:dsync:manage permission.
JavaScript
| import { DirectorySync, WorkOsWidgets } from '@workos-inc/widgets'; | |
| /** | |
| * @param {string} authToken - A widget token that was fetched in your backend. See the | |
| * "Tokens" section of this guide for details on how to generate the token | |
| */ | |
| export function AdminPortal({ authToken }) { | |
| return ( | |
| <WorkOsWidgets> | |
| <DirectorySync authToken={authToken} /> | |
| </WorkOsWidgets> | |
| ); | |
| } |
The token used to authenticate the widget. Learn more about authorization tokens.