> For the complete documentation index, see [llms.txt](https://manual.gnrx.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.gnrx.com.br/gnrx-gestao-de-cipa-manual/estruturas/usuarios/vincular-unidades.md).

# Vincular unidades a um usuário

Defina em quais unidades o usuário trabalha e o que ele enxerga.

## Vincular unidades a um usuário

**Para que serve:** definir em quais unidades o usuário trabalha. Ele só vê os registros dessas unidades.

{% hint style="info" %}
**Quem pode fazer:** Administrador, com a permissão de editar usuários.
{% endhint %}

### Antes de começar

* Cadastre as [unidades](https://github.com/victor-gnrx/gnrx-manual/tree/main/epi/configuracoes-iniciais/unidades/README.md) primeiro.

### Passo a passo

{% stepper %}
{% step %}

#### Abra o usuário

Clique em **Estruturas › Usuários**. Na coluna **Ações** do usuário, clique no ícone de olho.

<figure><img src="https://1127366365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZQlAc4zwbFtLzmKrbiZ%2Fuploads%2Fgit-blob-297801a67c1d502698b02e7b5845d77103ca2208%2Fusuarios-unidades-01.png?alt=media" alt="Detalhe do usuário com o cartão Unidades de Trabalho destacado"><figcaption><p>Cartão Unidades de Trabalho</p></figcaption></figure>
{% endstep %}

{% step %}

#### Marque as unidades

No cartão **Unidades de Trabalho**, clique em **Editar**. Marque as unidades. Se quiser, use **Selecionar todas** ou **Desmarcar todas**.

<figure><img src="https://1127366365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcZQlAc4zwbFtLzmKrbiZ%2Fuploads%2Fgit-blob-31f8c02d9294331b90ecf7d68cbb42c430e2d083%2Fusuarios-unidades-02.png?alt=media" alt="Lista de unidades em edição, com caixas marcadas e os botões Selecionar todas e Desmarcar todas"><figcaption><p>Unidades em edição</p></figcaption></figure>
{% endstep %}

{% step %}

#### Salve

Clique em **Salvar**. Aparece **Unidades atualizadas com sucesso!**.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Deixe pelo menos uma unidade marcada. Sem unidade, a pessoa não vê os registros na maioria das telas.
{% endhint %}

### Dúvidas comuns

<details>

<summary>Dá para limitar o acesso por setor?</summary>

Não. Hoje, o que limita o que a pessoa vê são as unidades vinculadas a ela.

</details>

<details>

<summary>Quando a mudança vale?</summary>

Assim que você salva.

</details>


---

# 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://manual.gnrx.com.br/gnrx-gestao-de-cipa-manual/estruturas/usuarios/vincular-unidades.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.
