> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# createDirectorySetupLink

GraphQL MUTATION

Creates a link to the WorkOS Admin Portal, where an admin connects the
caller's organization to its identity provider's directory. The link is
short-lived, so create it when the admin asks for it. Requires the
ORGANIZATION_ADMIN role action.

Reference: https://docs.credal.com/api-reference/mutations/create-directory-setup-link

## GraphQL Schema

```graphql
mutation ExampleMutation {
  createDirectorySetupLink
}
```