# Link User In-Game

## Linking FiveM to Sonoran CAD

Sonoran CAD requires players to link their in-game identity to a CAD account in order to match units and other integration features correctly.

Players can do this by running the `/link` command in-game and selecting the **Link CAD** button. This opens an external browser to `sonorancad.com/id`, where the link code is automatically applied.

<div><figure><img src="/files/9hcghJkfBe6gDFwSGeEU" alt=""><figcaption></figcaption></figure> <figure><img src="/files/mdI8ntLulNF6uQ1ZwwS6" alt=""><figcaption></figcaption></figure></div>

<details>

<summary>Developer Information</summary>

Once completed, the player’s FiveM license ID (or the configured `primaryIdentifier`) is associated with the `communityUserId` field via the API.

Learn more about [mapping players to CAD users](/cad/api-integration/getting-started/setting-your-api-id.md).

</details>

### Enforce Player Links

Communities can optionally configure the [**Force Register**](/cad/integration-plugins/in-game-integration/available-plugins/forcereg.md) submodule to help remind, or even force, users to link their CAD before playing.

The [tablet resource](/cad/integration-plugins/in-game-integration/available-plugins/tablet.md) can also be used to automatically link the user when they login.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonoransoftware.com/cad/integration-plugins/in-game-integration/link-user-in-game.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
