SLURM Reference Manual for HP XC System Software

Debug (Root) Options
These special SRUN options allow root users to launch jobs as a user or group other than themselves
for testing or debugging.
--gid=ggroup (for root SRUN users only) submits this job with ggroup's group access permissions,
there ggroup may be either the intended group name or the numerical group ID.
--uid=uuser (for root SRUN users only) submits this job as uuser instead of the actual submitting
user. Root users can invoke --uid to run jobs as a normal user yet in the RootOnly
partition; SRUN checks the invoking user's credentials to conrm access to the target
partition, but then drops the job's permissions to those of uuser after node allocation.
Here uuser may be either the intended user name or the numerical user ID.
SLURM Reference Manual - 32