User Example

This example provides information about the current user.

Smartsite SXML CopyCode image Copy Code
User Id: {user.userid()}
Login Name: {user.loginname()}
Full Name: {user.fullname()}
Is Anonymous: {user.isanonymous()}
<se:format inputdata="{security.groups.get()}">
    <se:rowformat>
Is User In Group {this.field(Name)}: {user.isingroup(this.field(Name))}
    </se:rowformat>
</se:format>
Example Result CopyCode image Copy Code
User Id: -98
Login Name: Guest
Full Name: Guest
Is Anonymous: true

Is User In Group Site Visitors: true
    
Is User In Group Guests: true