<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Chip,<br>
<br>
You don't have to delete the user, because a user can be in multiple accounts. Here's what I'd do:<br>
<br>
</p>
<ol style="margin-bottom:0px; margin-top:0px">
<li>add the user to account B</li><li>make account B their default</li><li>remove them from account A</li></ol>
<div><br>
</div>
<div>We often swap out user accounts like this.</div>
<br>
Best,<br>
<br>
Joseph
<p></p>
<p><br>
</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><span>----------------------------------------</span><br style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:13.3333px">
<font color="#212121" face="wf_segoe-ui_normal, Segoe UI, Segoe WP, Tahoma, Arial, sans-serif, serif, EmojiFont"><span style="font-size:13.3333px">Joseph F. Guzman - ITS (HPC)</span></font></p>
<p><font color="#212121" face="wf_segoe-ui_normal, Segoe UI, Segoe WP, Tahoma, Arial, sans-serif, serif, EmojiFont"><span style="font-size:13.3333px">Northern Arizona University</span></font></p>
<p><font color="#212121" face="wf_segoe-ui_normal, Segoe UI, Segoe WP, Tahoma, Arial, sans-serif, serif, EmojiFont"><span style="font-size:13.3333px">Joseph.F.Guzman@nau.edu</span></font></p>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Chip Seraphine <cseraphine@DRWHoldings.com><br>
<b>Sent:</b> Friday, August 5, 2022 8:23:09 AM<br>
<b>To:</b> Slurm User Community List<br>
<b>Subject:</b> Re: [slurm-users] Changing a user's default account</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Thanks. Guess adding/deleting is the way to go then – I was hoping not to lose user history, but alas.<br>
<br>
<br>
From: slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of "Renfro, Michael" <Renfro@tntech.edu><br>
Reply-To: Slurm User Community List <slurm-users@lists.schedmd.com><br>
Date: Friday, August 5, 2022 at 10:17 AM<br>
To: Slurm User Community List <slurm-users@lists.schedmd.com><br>
Subject: [ext] Re: [slurm-users] Changing a user's default account<br>
<br>
This should work:<br>
<br>
sacctmgr add user someuser account=newaccount # adds user to new account<br>
<br>
sacctmgr modify user where user=someuser set defaultaccount=newaccount # change default<br>
<br>
sacctmgr remove user where user=someuser and account=oldaccount # remove from old account<br>
<br>
From: slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Chip Seraphine <cseraphine@DRWHoldings.com><br>
Date: Friday, August 5, 2022 at 9:56 AM<br>
To: Slurm User Community List <slurm-users@lists.schedmd.com><br>
Subject: [slurm-users] Changing a user's default account<br>
External Email Warning<br>
<br>
This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests.<br>
<br>
________________________________<br>
<br>
I have a user U who is in association with account A, and I want to change that to account B. The obvious thing does not work:<br>
<br>
$ sacctmgr modify user where user=”U” set defaultaccount=”B”<br>
Can't modify because these users aren't associated with new default account “B”…<br>
<br>
OK, fair enough. But I can’t find a good way to meet this requirement! “sacctmgr create assoc” does not seem to be a thing. Googling around I see a lot of wags deleting and recreating the user in this situation, which I definitely do _not_ want to do.<br>
<br>
How does one change the account that a user is tied to?<br>
<br>
<br>
--<br>
<br>
Chip Seraphine<br>
Linux Admin (Grid)<br>
<br>
This e-mail and any attachments may contain information that is confidential and proprietary and otherwise protected from disclosure. If you are not the intended recipient of this e-mail, do not read, duplicate or redistribute it by any means. Please immediately
delete it and any attachments and notify the sender that you have received it by mistake. Unintended recipients are prohibited from taking action on the basis of information in this e-mail or any attachments. The DRW Companies make no representations that
this e-mail or any attachments are free of computer viruses or other defects.<br>
</div>
</span></font>
</body>
</html>