# User Authorization

## **Local Authorization**

To create a User with local authorization, you need to set the **“Local”** flag in the form:

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-a6cf30aa0c16f52a0199efa96034a16d03842aad%2F2025-04-22_17-24-42.png?alt=media" alt=""><figcaption></figcaption></figure>

Then, in the corresponding fields, specify the Account login and its password.

## **LDAP Authentication**

To create a User with the login method **“LDAP Authentication”**, you need to set the flag: **“Use LDAP authentication”**.

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-b3086d9d445a79a8d66e5bcad50f5554d0eb08b4%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(181).png?alt=media" alt=""><figcaption></figcaption></figure>

Then fill in the **“LDAP Users”** field.

To use LDAP authentication, you need to fill in the corresponding parameters in the `config.ini` file located at: `/opt/SherpaOrchestrator/backend/config/config.ini`:

* **ldap\_server**
* **ldap\_port**
* **ldap\_encryption**
* **ldap\_base\_dn**
* **ldap\_group**

Then restart the container for installation via Docker (if installed locally, restart the server if necessary).

## **OpenID Authentication**

To create a User with the login method **“OpenID Authentication”**, you need to set the flag: **“Use LDAP authentication”**, and then fill in the **“oAuth id”** field:

<figure><img src="https://3237142148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FscP4BXwl9ufpJr5mfVln%2Fuploads%2Fgit-blob-7be5b2048f84956c9ffe8db046731c1f99ca1ce2%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(316).png?alt=media" alt=""><figcaption></figcaption></figure>

To connect OpenID authentication, you need to fill in the corresponding parameters in the `config.ini` file located at: `/opt/SherpaOrchestrator/backend/config/config.ini`:

* **oAuthClientId="clientId"**
* **oAuthClientSecret="clientSecret"**
* **oAuthAuthUri="<https://OpenID.url/authorize>"**
* **oAuthTokenUri="<https://OpenID.url/token>"**
* **oAuthUserInfoUri="<https://OpenID.url/info>"**

When requesting a token, the Orchestrator passes the parameter `‘redirect_uri’`.

If you need to specify the Callback URL manually, add to: `yourDomainURL/api/gui/system/oAuthHook`.

In the Account or User settings, select: `"Use OpenID authentication"`.

Specify the User ID in the OpenID system.

In some cases (besides settings in Keycloak), you need to add the setting in the `setup.ini` file: `oAuthUserLinkField="preferred_username"`.


---

# 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.sherparpa.ru/en/sherpa-rpa/sherpa-orchestrator/rabota-v-sherpa-orchestrator/ekrany/polzovateli/avtorizaciya-polzovatelei.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.
