Managed identities: get value of Linux username

Hi, we are trying to use the Managed Identitied on our seqera platform. We are wondering if it is possible to get the value of the “Linux username” (introspection), for instance in the computing environment configuration (I would like to use something like “/scratch/${linuxuser}” as work path).

Actually, I would like to know if it is possible also to get the username (not necessarily the linux mapped name).

One step further: I tried to setup my compute environment like this:

Work directory: /scratch/seqera-work-${USER}
Lauch directory: /scratch/seqera-work-${USER}

It creates two folders with the correct username (/scratch/seqera-work-user1 and /scratch/seqera-work-user1) which remains empty, and two folders "/scratch/seqera-work-${USER}" and "/scratch/seqera-work-${USER}" (${USER} is not interpreted}) which are actually used.