<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ModifyUserPreferences</id>
	<title>ModifyUserPreferences - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ModifyUserPreferences"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ModifyUserPreferences&amp;action=history"/>
	<updated>2026-08-21T23:27:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=ModifyUserPreferences&amp;diff=2249&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ModifyUserPreferences&amp;diff=2249&amp;oldid=prev"/>
		<updated>2016-04-06T20:15:43Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:15, 6 April 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-2248:rev-2249 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=ModifyUserPreferences&amp;diff=2248&amp;oldid=prev</id>
		<title>193.62.202.241: Changing a user&#039;s email frequency preference</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ModifyUserPreferences&amp;diff=2248&amp;oldid=prev"/>
		<updated>2011-05-03T13:13:29Z</updated>

		<summary type="html">&lt;p&gt;Changing a user&amp;#039;s email frequency preference&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
I had a situation where a once-privileged user had been made non-privileged, since they had left our institute, but they had email preference settings set to weekly batch.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, the GUI has no interface to change a user&amp;#039;s preferences, other than having the user do it themselves. Fortunately, it wasn&amp;#039;t too difficult to write a small perl script to delete a named user&amp;#039;s email preference setting:&lt;br /&gt;
 #!/usr/bin/perl -w&lt;br /&gt;
 &lt;br /&gt;
 use strict;&lt;br /&gt;
 &lt;br /&gt;
 use lib qw(/opt/rt3/lib /opt/rt3/local/lib);&lt;br /&gt;
 &lt;br /&gt;
 use Getopt::Long;&lt;br /&gt;
 use RT;&lt;br /&gt;
 use RT::Interface::CLI qw/GetCurrentUser/;&lt;br /&gt;
 &lt;br /&gt;
 RT::LoadConfig;&lt;br /&gt;
 RT::Init;&lt;br /&gt;
 &lt;br /&gt;
 my $name;&lt;br /&gt;
 &lt;br /&gt;
 GetOptions(&amp;quot;name=s&amp;quot; =&amp;gt; \$name);&lt;br /&gt;
 &lt;br /&gt;
 die &amp;quot;Usage: $0 --name=bloggs\n&amp;quot; unless ($name);&lt;br /&gt;
 &lt;br /&gt;
 my $u = RT::User-&amp;gt;new($RT::SystemUser);&lt;br /&gt;
 &lt;br /&gt;
 my ($id, $err) = $u-&amp;gt;LoadByCol(&amp;#039;Name&amp;#039; =&amp;gt; $name);&lt;br /&gt;
 die(&amp;quot;Couldn&amp;#039;t load user &amp;#039;$name&amp;#039;: $err\n&amp;quot;) unless ($id &amp;gt; 0);&lt;br /&gt;
 &lt;br /&gt;
 my $p = $u-&amp;gt;Preferences( $RT::System );&lt;br /&gt;
 delete($p-&amp;gt;{&amp;#039;EmailFrequency&amp;#039;});&lt;br /&gt;
 $u-&amp;gt;SetPreferences( $RT::System, $p);&lt;/div&gt;</summary>
		<author><name>193.62.202.241</name></author>
	</entry>
</feed>