$currentUser
Updated on Aug 21, 2025 2 minutes to readThe Current User Plugin provides a unified interface to access information about the currently authenticated user, including credentials, identity, roles, and permissions.
Methods
| Method | Description | 
|---|---|
| getAvatarUrl | Returns the absolute URL of the user's avatar image. | 
| getEmail | Returns the user email. | 
| getId | Returns the user ID. | 
| getIdentity | Returns the user identity information. | 
| getIsAdmin | Returns whether the user has administrative rights. | 
| getPresentation | Returns the user presentation name. | 
| getUsername | Returns the username. | 
| isInRole | Checks if the user has a specific role assignment. | 
Methods Details
getAvatarUrl()
• Type
() => string
                    🔽 Show more
                
 
            getEmail()
• Type
() => string | null
                    🔽 Show more
                
 
            getId()
• Type
() => string | null
                    🔽 Show more
                
 
            getIdentity()
• Type
() => string | null
                    🔽 Show more
                
 
            getIsAdmin()
• Type
() => boolean
                    🔽 Show more
                
 
            getPresentation()
• Type
() => string | null
                    🔽 Show more
                
 
            getUsername()
• Type
() => string | null
                    🔽 Show more
                
 
            isInRole()
• Type
(role: E8ScriptAlias) => boolean
                    🔽 Show more
                
 
            • Details
Expects a role alias of type E8ScriptAlias.
Returns a boolean indicating whether the current user has the specified role assignment.