> For the complete documentation index, see [llms.txt](https://www.cakewalk.security/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.cakewalk.security/docs/platform-overview/connections-and-integrations/identity-sources/lucca.md). Agents can also search and read this documentation through its [MCP server](https://www.cakewalk.security/docs/~gitbook/mcp).

# Lucca

Connect Lucca to Cakewalk as an identity source: the role you need, and where to create the API key and enable its permissions.

Lucca connects to Cakewalk with an API key you create in Lucca's security settings; for the shared flow, see [Connecting an HRIS](https://www.cakewalk.security/docs/platform-overview/connections-and-integrations/connecting-an-hris.md).

### ✅ Before You Start

* Your Lucca user roles must include **Other → Lucca → Roles and API Key management**.
* To check: click your user icon in the top bar, click **Settings** under Administration, then under **Settings → Security** click **API Keys**. Verify you can see the **Generate API Key** button. If you cannot, ask a system administrator to assign the "Roles and API Key management" role to your account.

### 🛠 Connect

1. In Cakewalk, go to **Settings → Data Sources → Users** and select Lucca.
2. Note your Lucca domain: it appears in the URL bar in the form `https://example.ilucca.net`.
3. In Lucca, click your user icon in the top bar, click **Settings** under Administration, then under **Settings → Security** click **API Keys** and click **Generate a new API Key**.
4. Enter a name for the key under "Key name" and select at least one permission to create it: start with **Collaborators → View / create / edit users**, you can fine tune permissions later. Enter the email address of someone in IT or HR under "Technical contact", select **Internal use** for "API key usage" and click **Generate a new API key**.
5. Copy the new key with the copy button to its right, enter your Lucca domain and paste the key into the connection flow, then click **Continue**.
6. Back on Lucca's API Keys page, locate the key you created by its name and open its role administration. In the Roles page, find the key by name in the sidebar on the left and click it.
7. Enable each permission the connection flow requests: under the **Permissions** tab, open the parent permission with the plus icon, then check the requested sub permissions. Repeat for every requested permission, then click **Save** in the bottom right corner. The connection flow shows the exact list.
8. Click **Set up integration** in the connection flow.

The first sync starts immediately. Sync details and cadence: [Connecting an HRIS](https://www.cakewalk.security/docs/platform-overview/connections-and-integrations/connecting-an-hris.md).

### 📚 Related

* [HRIS and IdP](https://www.cakewalk.security/docs/platform-overview/connections-and-integrations/hris-and-idp.md)
* [Connecting an HRIS](https://www.cakewalk.security/docs/platform-overview/connections-and-integrations/connecting-an-hris.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.cakewalk.security/docs/platform-overview/connections-and-integrations/identity-sources/lucca.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
