Subject
In identity and access management, a subject is the entity that is trying to access something, such as a person, an application, or a device. It is the 'who' or 'what' that a system identifies, authenticates, and then decides whether to allow into a resource. The term draws on the general meaning of something placed under authority or control, applied here to entities governed by access policies.
A subject is the active entity (typically a user, service account, workload, or device) whose identity is asserted and evaluated during an access flow. In most access control and policy evaluation contexts, the subject is the entity to which identification, authentication, and authorization steps are applied in sequence: the subject is first identified, then authenticated to verify the asserted identity, and then authorized against applicable policy to determine permitted actions. The subject is frequently represented by attributes and claims that a policy decision point (PDP) evaluates in models such as RBAC, ABAC, PBAC, or ReBAC. The precise definition of 'subject' varies by standard, profile, and vendor deployment; some specifications use 'principal' as a closely related or synonymous term, and the exact semantics should be confirmed against the governing specification in a given context. Note that the general-language sense of 'subject' as a topic of discussion or as a grammatical sentence component is out of scope for this IAM usage.
Why it matters
The subject is the anchor of nearly every access decision an identity system makes. Before a system can enforce any policy, it must establish which entity is making the request, a person, a service account, a workload, or a device, and represent that entity consistently across identification, authentication, and authorization steps. If the subject is misidentified or its asserted identity is not properly verified, every downstream authorization decision inherits that flaw. Getting the subject right is therefore a prerequisite for meaningful access control rather than an afterthought.
The concept also matters because subjects are increasingly non-human. Modern deployments must treat service accounts, automated workloads, and devices as first-class subjects, each with its own identity, attributes, and lifecycle. Systems that model subjects only as human users tend to accumulate poorly governed machine identities, which become a common source of over-privileged and unmonitored access. Treating the subject as a general active entity, not just an interactive user, helps architects apply consistent authentication and policy evaluation across the full range of principals that request resources.
Because the precise semantics of 'subject' vary by standard, profile, and vendor, imprecision here creates real interoperability and audit risk. Some specifications use 'principal' as a closely related or synonymous term, and the attributes and claims that describe a subject may differ in meaning across systems. When a subject's identity flows between an identity provider, a token, and a policy decision point, teams should confirm the exact meaning of 'subject' against the governing specification rather than assuming a shared definition.
Who it's relevant to
Inside Subject
Common questions
Answers to the questions practitioners most commonly ask about Subject.
