We are using slurm 24.05.5, and on that and previous versions when you do sbatch and do not explicitly provide --account, it will use the defaultAccount field in the sacctmgr database.
Our Unix group and Slurm allocation names are not the same (groups have a two letter cluster name prefix, and allocations get a suffix indicating the source of the funding, and many users belong to multiple allocations with the same group). But you can test it; in particular, if you do "sacctmgr show user USERNAME" where USERNAME is some user on your system, it should list something like:
sacctmgr show user payerle
User Def Acct Admin
---------- ---------- ---------
payerle test-paid None
In this case, my default account is test-paid, and that will be used if I do not explicitly specify an account when submitting a job. (And we do not have a test-paid Unix group, and the closest unix group I belong to is zt-test).