> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/pt/configuracao-do-scepman/rbac/csr-and-form-roles.md).

# Funções de CSR e formulário

{% hint style="info" %}
Aplicável à versão 2.11 e superior do SCEPman Certificate Master
{% endhint %}

Além das funções descritas em [RBAC do Certificate Master](/pt/configuracao-do-scepman/rbac.md)há algumas outras que não são adicionadas à aplicação Entra por predefinição, uma vez que podem ser necessárias apenas em circunstâncias especiais.

Estas funções podem ser vistas como um conceito mais granular do que o `Request.*]` as funções já fornecem, ao mesmo tempo que concedem especificamente as permissões para solicitar certificados usando um CSR ou o formulário.

### Funções CSR

<figure><img src="/files/bd5bfdca72dfa428af3f0739c34a9fbaf8b23ff1" alt=""><figcaption></figcaption></figure>

As funções a seguir permitem que os utilizadores solicitem certificados na sua secção específica, podendo apenas fornecer CSRs para serem assinados. Não será possível criar um certificado através do formulário.

* **Request.All.Csr**
* **Request.Client.Csr**
* **Request.CodeSigning.Csr**
* **Request.Server.Csr**
* **Request.SubCa.Csr**
* **Request.User.Csr**

### Funções de formulário

<figure><img src="/files/095b3fbf6226bd10c2590f88c3a02e7fe39b40c9" alt=""><figcaption></figcaption></figure>

As funções de formulário permitirão que os utilizadores criem certificados usando o formulário integrado no Certificate Master. A assinatura de CSRs não é possível com estas funções.

* **Request.All.Form**
* **Request.Client.Form**
* **Request.CodeSigning.Form**
* **Request.Server.Form**
* **Request.SubCa.Form**
* **Request.User.Form**

## Adicionar as Funções

Todas estas funções podem ser adicionadas executando o `Complete-SCEPmanInstallation` CMDlet em combinação com o `-AddAdditionalCertMasterAppRoles` parâmetro. Isto requer a versão 2.11 ou mais recente do módulo SCEPman PowerShell.

#### Exemplo:

{% code overflow="wrap" lineNumbers="true" %}

```powershell
Install-Module SCEPman -Scope CurrentUser -Force
Complete-SCEPmanInstallation app-scepman-contoso -AddAdditionalCertMasterAppRoles
```

{% endcode %}


---

# 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 dynamically by asking a question.

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

```
GET https://docs.scepman.com/pt/configuracao-do-scepman/rbac/csr-and-form-roles.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
