Skip to content

Extra QGIS Variables

The Mergin Maps QGIS plugin adds several variables that can be used in QGIS expressions:

Variable nameSample valueScopeDescription
@mergin_usernamemartinglobalName of the user currently logged in to Mergin Maps
@mergin_user_emailmartin@example.comglobalEmail of the user currently logged in to Mergin Maps
@mergin_urlhttps://app.merginmaps.comglobalURL of the Mergin Maps service
@mergin_project_nameTree surveyprojectName of the active Mergin Maps project
@mergin_project_ownermartinprojectName of the owner of the active project
@mergin_project_full_namemartin/Tree surveyprojectOwner and project name joined with a forward slash
@mergin_project_version42projectCurrent version of the active project

A common use case is to use @mergin_username as the default value for one of the fields in a survey layer to automatically track who has added (and/or modified) a particular record.