If you are a member of a project with unix group ID <gid>, you can use the the Slurm flag -A/--account with salloc, sbatch or in the Slurm batch as in the example below:

#SBATCH --account=<gid>

The directive above will tell Slurm to charge the compute budget of the selected group for the current job.