Skip to content

Scopes

The permissions IDEN defines for itself. Everything here is marked system-defined and cannot be renamed or deleted — an administrator who deleted admin:roles:write would lock the organization out of its own deployment.

Your own APIs define their own permissions; see Validate tokens in your API.

Administration

Managing the deployment. The administrator role carries all of them.

Scope Grants
admin:users:read View users, their roles, and their direct grants.
admin:users:write Create, update, and delete users, reset their passwords, and clear a lost authenticator.
admin:grants:write Assign roles and individual scopes to a person. Separate from admin:users:write, because assigning permissions is the one administrative act that raises somebody's authority — see Delegation.
admin:groups:read View groups, their members, and their roles.
admin:groups:write Create, update, and delete groups and membership.
admin:roles:read View roles and the scopes they bundle.
admin:roles:write Create, update, and delete roles and their scopes.
admin:apis:read View registered resource APIs.
admin:apis:write Register, update, and delete resource APIs.
admin:scopes:read View the scopes defined under an API.
admin:scopes:write Define, update, and delete scopes under an API.
admin:clients:read View registered OAuth clients. Changing one has no scope of its own — see Applications.
admin:audit:read Read the audit log.
admin:profile-fields:read View the organization's profile schema.
admin:profile-fields:write Define the fields this organization collects about people.

Self-service

What a person may do to their own account. The member role carries all of them.

Scope Grants
entity:profile:read View your own profile.
entity:profile:write Update your own profile.
entity:credentials:write Change your own password.
entity:totp:read View the status of your authenticator app.
entity:totp:enroll Set up or remove your authenticator app.
entity:sessions:read See where you are signed in.
entity:sessions:revoke Sign yourself out of other sessions.
entity:permissions:read See your own roles, groups, and permissions.
entity:connections:read See which applications have access.
entity:connections:revoke Withdraw an application's access.

Developer self-service

Registering your own application against someone else's IDEN. The developer role carries these plus every self-service scope; no account has them by default. See Let people register their own applications.

Scope Grants
developer:clients:read View the applications you registered.
developer:clients:write Register your own applications and rotate their secrets.

These are their own API rather than entity: scopes on purpose: member carries every entity: scope, so putting them there would make every account a developer.

Biometrics

Seeded only when IDEN_BIOMETRIC_ENABLED=true. See Faces.

Two more entity: scopes, which member and administrator receive with the rest:

Scope Grants
entity:face:read See whether your face is enrolled.
entity:face:write Let a kiosk enrol your face, or remove your face.

Two admin: scopes for the kiosks themselves, which administrator receives:

Scope Grants
admin:kiosks:read View enrolment kiosks, their health and history.
admin:kiosks:write Register, pair, configure, and revoke enrolment kiosks. Registering or pairing one also needs both biometric: scopes below, because the device receives them.

And the kiosk's own, under the biometric API. Each registered kiosk's client holds both:

Scope Grants
biometric:enroll Enrol a person's face, given the ticket they created. Worth nothing without one: the ticket is what names the person. Refused, too, for a client that is not a registered kiosk in service.
biometric:device Report a kiosk's health and read its settings.

The OIDC scopes

Not IDEN's to define — these come from the specification and behave as clients expect.

Scope Effect
openid Required to receive an ID token at all. Without it the flow is plain OAuth 2.0.
profile Releases name and preferred_username.
email Releases email and email_verified.
offline_access Asks for a refresh token, so the application keeps working while the person is away from it. The client must also allow the refresh_token grant; without both, no refresh token is issued.

Delegation

Holding a scope that assigns permissions does not let you assign every permission.

An admin: or biometric: scope can only be granted — or taken away — by somebody who already holds it. The check runs against the caller's own token, not their account — so an administrator working through a narrowly-scoped client cannot delegate past that token, and the rule applies unchanged to client_credentials, where there is no person at all. Anything else is refused with 403 cannot_delegate.

It covers every route a scope can travel, not only the obvious one:

  • naming a scope directly, or a role that contains it
  • creating a user that already holds either
  • giving a group a role, or adding somebody to a group that has one
  • changing what a role means, which promotes everyone already holding it

and the same routes in reverse: removing a scope from a role, a role from a group, or somebody from a group, and deleting a role or group that carries one. Without that half, an administrator who cannot grant admin:scopes:write could still take it from everyone who has it.

Your organization's own scopes are unrestricted, and deliberately. An identity provider exists so that administrators can grant permissions they do not personally need; requiring a registrar to hold attendance:records:write before granting it would mean holding every permission in the organization. entity: and developer: are unrestricted for a different reason: they are self-service, so granting one raises the grantee's authority over themselves and the granter's over nobody.

Acting on somebody above you

The mirror of the same idea, and the half that is easy to miss. Stopping an administrator granting what they lack achieves nothing if they can take it from whoever already has it instead.

You may only administer people who are not above you. If the target holds an admin: or biometric: scope the caller does not, the request is refused with 403 cannot_administer. It applies to every write: updating them, assigning their roles or scopes, resetting their password, clearing their authenticator, deleting them — because a password reset plus a cleared authenticator is a way to sign in as them.

Applications

Changing an OAuth client needs every admin: scope — and every biometric: scope when that module is enabled. Registering, updating, setting scopes, rotating a secret and deleting are all refused with 403 insufficient_scope otherwise. Reading needs only admin:clients:read.

There is no narrower permission because none can be safe. A client's redirect URIs, grants, secret and scopes decide who receives its tokens, so whoever controls them can act as anyone who signs in through it — repoint the dashboard, which skips consent, and the next administrator to follow a link hands over their token. Only somebody who already holds every restricted scope has nothing to gain.

People who need to register their own application use self-service registration instead. Those applications always show a consent screen, and they cannot be given an admin: or biometric: scope: their owner controls where the tokens go. An attempt is refused with 422 restricted_scope_on_owned_client.

Putting it together

What the two rules buy you is a help-desk account. Give it admin:users:read, admin:users:write and the group scopes, and withhold admin:grants:write: it can create people, rename them, deactivate them, reset their passwords and clear a lost authenticator, and it cannot make anyone an administrator — including itself, and including by way of an administrator who already is one.