Bill Wichser writes:
> I usually add "withassoc" for a show user
>
> sacctmgr show user loris withassoc
Thanks! That was what I was looking for!
Cheers,
Loris
> Bill
>
> On 11/23/21 9:07 AM, Loris Bennett wrote:
>> sacctmgr show user loris accounts
>
--
Dr. Loris Bennett (Herr/Mr)
ZEDAT, Fr
I usually add "withassoc" for a show user
sacctmgr show user loris withassoc
Bill
On 11/23/21 9:07 AM, Loris Bennett wrote:
sacctmgr show user loris accounts
Hi,
Thanks everyone. What I was missing was that that the two user/account
associations have to exist before I can change the default account.
However, what I find a bit odd is that I have multiple associations,
e.g.
$ sacctmgr show assoc where user=loris
ClusterAccount User
Hi Loris,
Not sure if this helps you, sorry if not. I can't answer the specifics
of your query about how sacctmgr works.
Here are the relevant bits from our account setup workflow to add a
users account to an account, the first line, then set their default
account to it.
sbank project useradd -c
Hi Loris,
First you add the user to one or more other Slurm accounts, something like
this:
$ sacctmgr add user xxx account=yyy
Then you can redefine the user's default account:
$ sacctmgr modify user where name=xxx set defaultaccount=yyy
Here is an example from our cluster where the user is
They only way I found was to add the user to the new account and then modify
their default account to the new account.
sacctmgr add user example account=groupb
sacctmgr modify user where user=example set defaultaccount=groupb
Then you can remove them from the original default account if you want