Determines whether an authenticated user belongs to any role in a list of roles.
IsUserInAnyRole(role_list)
cflogin, cfloginuser, cflogout, GetAuthUser, GetUserRoles, IsUserInRole, IsUserLoggedIn, Securing Applications in the Developing ColdFusion Applications
<cfif IsUserInAnyRole(allRoles) > <cfoutput>Authenticated user is in these roles: #GetUserRoles()#</cfoutput> <cfelseif > <cfoutput>Authenticated user is in no roles</cfoutput> </cfif>
Note:
From ColdFusion 11 onwards, this function is not applicable when a user is logged in using Admin API.