> ## Documentation Index
> Fetch the complete documentation index at: https://conductorone-docs-baton-kubernetes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up a Casdoor connector

> C1 provides identity governance for Casdoor. Integrate your Casdoor instance with C1 for unified visibility and governance over user access.

C1 provides identity governance for Casdoor. Integrate your Casdoor
instance with C1 for unified visibility and governance over user access.

## Capabilities

| Resource | Sync                                                          | Provision |
| -------- | ------------------------------------------------------------- | --------- |
| Users    | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |
| Groups   | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |

The connector reads one organization. It syncs that organization's users and
groups, and the membership of each group.

## Gather Casdoor credentials

<Warning>
  You need access to a Casdoor application whose Client ID and Client secret can
  read the organization's users and groups.
</Warning>

<Steps>
  <Step>
    Sign in to your Casdoor instance as an administrator.
  </Step>

  <Step>
    Open **Applications** and select (or create) an application scoped to the
    organization you want to sync. Each connector reads a single organization.
  </Step>

  <Step>
    Copy the application's **Client ID** and **Client secret**. Note the
    organization name and your Casdoor base URL (for the public demo this is
    `https://door.casdoor.com`).
  </Step>
</Steps>

## Configure the Casdoor connector

<Tabs>
  <Tab title="Cloud-hosted">
    Follow these instructions to use a built-in, no-code connector hosted by C1.

    <Steps>
      <Step>
        In C1, navigate to **Integrations** > **Connectors** and click **Add connector**.
      </Step>

      <Step>
        Search for **Casdoor** and click **Add**.
      </Step>

      <Step>
        Choose how to set up the new Casdoor connector.
      </Step>

      <Step>
        Set the owner for this connector.
      </Step>

      <Step>
        Click **Next**.
      </Step>

      <Step>
        Find the **Settings** area of the page and click **Edit**.
      </Step>

      <Step>
        Enter the Casdoor credentials:

        * **Casdoor base URL**: The URL of your Casdoor instance, with no trailing slash and no `/api` suffix.
        * **Organization name**: The organization to read users and groups from.
        * **Client ID**: The application Client ID.
        * **Client secret**: The application Client secret.
      </Step>

      <Step>
        Click **Save**.
      </Step>

      <Step>
        The connector's label changes to **Syncing**, followed by **Connected**. You can view the logs to ensure that information is syncing.
      </Step>
    </Steps>

    **Done.** Your Casdoor connector is now pulling access data into C1.
  </Tab>

  <Tab title="Self-hosted">
    Follow these instructions to run the Casdoor connector in your own
    environment.

    <Steps>
      <Step>
        Create a secret for the Casdoor Client secret.
      </Step>

      <Step>
        Configure the connector with your Casdoor base URL, organization name,
        Client ID, and Client secret.
      </Step>

      <Step>
        Deploy the connector using your standard self-hosted connector process.
      </Step>
    </Steps>

    **Done.** Your Casdoor connector is now pulling access data into C1.
  </Tab>
</Tabs>
