Перейти к содержимому

Console roles & RBAC

The OkYouIn console serves two audiences: administrators and operators who manage the installation, and end users who manage their own MFA method under My account. What each person sees and may do follows from their groups — a user has no role of their own.

A group can give its members console rights in two ways:

  • Administrators group — members hold every permission, now and in future versions, and can never be locked out of the console. RBAC models do not apply to them.
  • RBAC model — a named set of permissions. Members get exactly what the model grants.

A user’s permissions are the union of what all their groups grant. A user whose groups grant nothing is a self-service user: after signing in they see only My account.

Groups synchronized from a directory can carry an RBAC model and the administrators flag too — the usual way to give an AD group such as OkYouIn-Admins or Helpdesk its console role. A directory configuration can also assign models to the groups it creates (Default RBAC, Per-Group Overrides); see Directories.

Open Infrastructure ▸ Identity ▸ RBAC. A model is a list of sections (Users, Groups, Applications, Access policy, LDAP, MFA settings, Blocked IPs, Audit log, Settings…) with the actions allowed in each — typically View, Create, Edit, Delete, and section-specific ones such as Manage, Run sync, Test connection or Browse directory. Any action implies View; clearing View clears the whole section.

ModelGrants
auditorRead-only access to everything: every View permission, nothing else.
operatorDay-to-day management: users, groups, applications, policies, objects, logs, unblocking addresses and so on. No RBAC administration, and system-wide configuration is read-only — settings, MFA providers, directories and domain membership, Kerberos SSO, syslog, background jobs, backup, cluster and license.

Built-in models are read-only and are updated with each release, so a new section added by an upgrade lands in them automatically. To grant a different set, click New RBAC model and tick the permissions — All view and Grant all speed this up. A model assigned to a group cannot be deleted until it is unassigned.

  1. Create or pick a group under Infrastructure ▸ Identity ▸ User Groups.

  2. Choose its RBAC model, or tick Administrators group for full access.

  3. Add the members — local users or directory users — or use a directory group whose members come from the sync.

  • Only administrators change administrators. The administrators flag, the RBAC model and web sign-in of any group, and everything about an administrators group (including its members), can only be changed by an administrator.
  • No escalation. Nobody can grant more than they hold: adding a user to a group, or editing a model, is refused if it would hand out a permission the person doing it does not have.
  • Changing another account needs its rights. To edit, lock, reset or delete another user, you need — besides the action’s permission — every console permission that user holds. Your own account is always yours to edit.

Every change to models, groups and memberships is recorded in the audit log.

Separately from permissions, each group has a Web sign-in mode that decides whether its members may sign in to the console at all:

ModeMeaning
InheritThe group does not decide; the installation default applies.
AllowMembers may sign in to the console.
DenyMembers cannot sign in to the console.

The installation default is Allow console login by default under Settings ▸ System ▸ Authentication & Sessions (section Console access). It is on, because end users need the console to manage their own MFA.

Across all of a user’s groups, in this order:

  1. any administrators group → allowed (an administrators group cannot be set to Deny);
  2. otherwise any group set to Deny → denied;
  3. otherwise any group set to Allow → allowed;
  4. otherwise the installation default.

A typical lock-down: switch the default off and set Allow on the few groups that need the console — administrators, helpdesk, and the groups whose members should manage their own MFA. Because synchronized directory groups start at Inherit, the default also covers every group a directory creates later.

The check runs before the password is verified, so a denied account never causes a directory bind, and the user only sees the usual “invalid credentials”. It also re-runs on every request: moving someone into a Deny group ends their session at once.

Console access has nothing to do with signing in to your applications — that is decided by the global policy alone.

The console has its own second factor, separate from the MFA of your applications:

  • It applies to members of any group with Require MFA switched on (User Groups, or the MFA Enrollment by Group card under Settings ▸ System ▸ MFA Settings).
  • It is active while System MFA Mode under Settings ▸ System ▸ MFA Settings is Enabled (the default). Disabled turns the console’s second factor off; enrollments are kept.
  • The user’s own enrolled method is used — TOTP, e-mail, Telegram or OkYouIn web app push (with number matching).
  • A user who must use MFA but has no usable method cannot sign in to the console and is told to use an MFA setup link from an administrator.

Where MFA applies to your applications instead is explained in How a sign-in is decided and the MFA overview.

Session lifetimes are set under Settings ▸ System ▸ Authentication & Sessions, section Sessions: Idle timeout (minutes) (default 30; 0 = off) with an Idle warning (seconds) before it (default 60), Maximum session length (hours) (0 = no limit), Access token lifetime (minutes) and Session resume window (hours). Resetting a user’s password or deleting the user ends their sessions.