--- title: "rolesAvailable" slug: "user-rolesavailable" updated: 2025-11-06T18:54:46Z published: 2025-11-06T18:54:46Z canonical: "docs.doc-know.com/user-rolesavailable" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.doc-know.com/llms.txt > Use this file to discover all available pages before exploring further. # rolesAvailable ### user.rolesAvailable Type: **Array** Returns a JavaScript array of all possible security roles regardless of whether or not the user belongs to them. ### Examples ``` // display all roles supported by the runtime for (var i in user.rolesAvailable) { debug.log(user.rolesAvailable[i]); } ``` ### Remarks Definition A **role** is a security term that refers to a type of user and the set of permissions they have. IT administrators assign **roles** to **users** (according to their job specifications) when the user's account is first set up or when management requests changes. These roles often dictate which product features a user can access. For example, a Dr. Know user could be a **technician** using your app to collect certain data elements during patient testing. Later, a **physician** might use your app to review this information and complete a report. Each user would belong to a distinct role. Users can also belong to more than one role. You can use this information within your scripts to deliver role-specific features and user experience enhancements.