I have been reading the following issue https://github.com/opengisch/QField/issues/729 about populating a field (by default) with a user account name. Because they speak about a workaround with global variables I also checked the QGIS variable list and some interesting articles by Nyall Dawson
Anyway, I am still looking for a way to add a proper @QField_user_account_name (I am afraid this variable doesn't exist yet) in a QGIS project.
I assume the global variable is a work around but I don't see how to apply this. Also note that the user_account_name in QGIS is different from the user_account_name in QField (see printscreens). For example, when I add a 'editor' field in an attribute table of a certain layer with the variable @user_account_name, the field will be automatically populated with my user name from the pc when working in the office and with my QField (technical) user name when working in the field.
In other words, the questions are
- Can I have the same user name for myself or other collaborators when using Qfield on mobile or QGIS on pc?
- Is there a workaround to have a non-technical user name like 'u0_a5' from QField?
I am working with QGIS 3.16.3 and QField 2.0.8 with cloud sync activated.