Determines whether an authenticated user belongs to the specified Role.
True, if the authenticated user, belongs to the specified Role; False, otherwise.
Authentication functions, Decision functions
IsUserInRole("role_name") 
 
New in ColdFusion MX: This function is new.
| Parameter | Description | 
|---|---|
| role_name | Name of a security role | 
<cfif isUserInRole("Admin") > 
  <cfoutput>Authenticated user is an administrator</cfoutput> 
<cfelse isUserInRole("User") > 
  <cfoutput>Authenticated user is a user</cfoutput> 
</cfif>