RBAC operates by assigning users to roles based on their job functions. Each role is granted specific permissions to access certain data and perform particular actions. For example, in a toxicology lab, a laboratory technician may have access to chemical databases and testing equipment, whereas a research scientist might have broader access, including the ability to analyze and interpret data. Conversely, administrative staff may only have access to non-sensitive information.