IsUserInRole()

Determines whether an authenticated user belongs to the specified Role.

IsUserInRole( role_name=any );

Returns: Boolean

Argument Description
role_name
any, required

Name of a security role

Alias: roleName, role, name, value

Examples

<cflogin>
    <cfloginuser name = "test" password = "password" roles = "user,admin,editor">
</cflogin>

<cfdump var="#IsUserInRole(role_name="admin")#" />

See also