OAuth Permissions
Open the application OAuth settings.
Two access scenarios
A Website integration configures two scenarios independently in OAuth access scenarios:
-
the Project tab opens the project policy. The authorization belongs to one project, and the API checks the permissions granted in that project;
-
the User tab opens the user policy. The application acts on the user's behalf, while every call remains limited by both the approved permissions and the user's current access to the target resource.
The scenario is selected by each authorization request through subject, not when the application is created. For subject=project, project_id is optional: when it is absent, Senler AI asks the user to select an available project. For subject=user, do not pass project_id. When subject is absent, project is used. A Plugin supports only the project scenario.

Permissions
Project and user policies each have their own permissions. Two modes are available for each policy:
- Selected permissions requests the entire selected set when
scopeis absent. Thescopemay contain a subset. When user permission selection is off, the user must be able to grant every requested permission; - Available to the user makes Senler AI exclude permissions the authorizing user cannot grant. Pass
scope=project_accessorscope=user_accessfor the corresponding scenario, or omitscope.
In the second mode, Request all available permissions sets the upper boundary. When disabled, the application receives the intersection of selected and available permissions; when enabled, it receives every permission allowed for that OAuth scenario that the user can grant. The exact set is always shown before consent.
For project authorization, can_view_projects is added automatically and cannot be removed. User authorization can include project, application, and account permissions, but it cannot manage API tokens, Client Secrets, or application deletion.
Narrowing a policy immediately narrows active authorizations; a user authorization with no remaining permissions is revoked. Expanding a policy does not add permissions to previously issued tokens—the user must complete OAuth again. Select all and Deselect all change optional permissions.
Save applies both policies and the Redirect URIs.

User permission selection
The Let users choose permissions switch is configured separately for project and user access. Enable it if the app can work with a partial set of permissions. When it is off, users approve the entire displayed set or decline the connection.
After enabling it, mark the required permissions your app cannot work without. Users choose the remaining permissions themselves; these are off when connecting for the first time. For projects, can_view_projects remains required. If you pass a specific scope, include all required permissions. An unavailable required permission prevents connection; unavailable optional permissions are excluded from selection, including in Selected permissions mode.
For each permission, you can add an Explanation for users in Russian and English: why it is needed and which features are unavailable without it. The explanation appears next to the system permission name.
When reconnecting, previously granted permissions included in the current request are selected. Approval replaces the app's access to the selected project or account: unchecked permissions and those no longer requested are revoked, including access through earlier tokens. For projects, the change applies to the app's entire connection to that project. The screen separately lists previous permissions outside the new request that will be removed. If conditions change or 10 minutes pass, review the current list and approve again.

Pass the selected scenario and permissions in the authorization request.