contextswhenrole
Contextswhenrole is a concept in access control and context-aware system design that describes the conditional activation of a role based on the surrounding context. It focuses on when a user or process should hold a given role rather than assuming it unconditionally.
In practice, a role is not solely a label assigned to a user; it is a set
Formalization: A contextswhenrole policy expresses if context C holds, then role R is active; otherwise R is
Examples: An employee may assume the "Financial Analyst" role only during business hours and from corporate
Relation to related concepts and challenges: It complements traditional RBAC by adding context; it intersects with
See also: attribute-based access control, role-based access control, context-aware computing, policy-based access control.