An account represents somebody or something that needs to be identified. This can be a human user, a machine, an IoT device, or anything else we have not yet thought of. Other common terms representing the same would be "identity" or "user". At Quasr, we chose to primarily go with the term "account" to emphasize that those needing to identify themselves do not necessarily need to be human users.
Users will be by default external but you can also create internal users. These reflect users that belong to your organization and have the following effects:
All users have following general configuration options:
label: string) - Textual label for the user.status: string) - The current status of the user. If disabled, the user can't be used and all claims, enrollments, permissions and consents will be locked - also tracked tokens will be revoked. Disable a user that shouldn't be used for now, but lock a user that is compromised or misbehaving - see Locking below for the difference.config.internal: boolean) - Indicates whether the user is internal, i.e. part of your organization.When a user is compromised or misbehaving, an admin can lock it (status: LOCKED), either with the Lock button of the user in the Admin UI or by updating its status to LOCKED via the Management API. Locking a user:
config.contacts.security, see Network), if set - see the example belowDisabling and locking have the same effect on access, but serve a different purpose:
| Disabled | Locked | |
|---|---|---|
| Use when | The user shouldn't be used for now, for example because they left your organization | The user is compromised or misbehaving |
| How | Status in the Admin UI, or DISABLED via the Management API | Lock button in the Admin UI, or LOCKED via the Management API |
| Access | Tokens revoked; claims, enrollments, permissions and consents locked; the user can't sign in | Same as disabled |
| Security notification | No | Yes, to the security email |
| Updates | Still possible | Not possible until unlocked |
| Restore | Re-enable it any time | Unlock it (admin only) |
| Switch | Can't be locked, re-enable it first | Can't be disabled, unlock it first |
A locked user stays locked until an admin unlocks it, either with the Unlock button of the user in the Admin UI or by updating its status back to ENABLED via the Management API. Unlocking restores the user and all of its claims, enrollments, permissions and consents to their previous state. The time of the lock or unlock is visible as the user's last update (updated_at).
ENABLED users can be locked, and you can't lock yourself.Quasr can lock users too:
Such a lock has the same effect as one by an admin, and you unlock the user the same way.
Whenever a user is locked - by an admin or by Quasr - your tenant's security email, if set, receives an email from security@quasr.io like following example, stating the user's label, whether it is internal and who locked it: