# GetUserRoles()

Retrieves the list of roles for the current user.

```
GetUserRoles( );
```

**Returns:** string

*This function does not take any arguments.*

# Examples

```cfml
<cflogin>
	<cfloginuser name = "test" password = "password" roles = "user,admin,editor">
</cflogin>
<cfdump var="#getUserRoles()#" />
```







# See Also

[GetAuthUser()](getauthuser.md), [IsUserInAnyRole()](isuserinanyrole.md), [IsUserInRole()](isuserinrole.md), [IsUserLoggedIn()](isuserloggedin.md), [<cflogin>](../tags/login.md), [<cfloginuser>](../tags/loginuser.md)