Role
Returns the name of a role assigned to a user.
Variants
Role()
Returns the name of a role assigned to the user currently accessing the database.
Returns
Text
Examples
Role()
returns the role name for the user currently accessing the database.Role() = "Admin"
returns true if the current user is working under the "Admin" role.Role[Admin]
returns true if the current user is working under the "Admin" role. This is a compact form of the following condition:Role() = "Admin"
.
Role(User user)
Returns the name of a role assigned to the user.
Parameters
- user
- The user to check.
Returns
Text
Examples
Role(ToUser("linda.smith@abc.com"))
returns a role name assigned to Linda Smith.Role([Created By]) = "Manager"
returns true if the user specified in the "Created By" column is working under the "Manager" role.