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>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt1142.htm
Comments
carehart@systemanage said on Sep 16, 2002 at 4:09 AM : benson_nc said on Oct 31, 2002 at 5:16 PM : i_netmaster said on Jan 23, 2003 at 6:46 AM : Tekes Stavros said on Feb 19, 2004 at 12:34 AM : stevieo said on Apr 26, 2004 at 10:53 PM :