<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1089 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1089 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian</link><pubDate>Fri, 23 Sep 2022 21:25:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Current Revision posted to Appian Knowledge Base by Elly Meng on 9/23/2022 9:25:23 PM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt;
&lt;div class="content"&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;20.1 and later&lt;/h3&gt;
&lt;p&gt;Beginning in Appian 20.1, there&amp;nbsp;are three new methods to rename users directly from the product and without the need for an outage. All methods can be performed by a System Administrator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the user profile page (Admin Console and Appian Designer)&lt;/li&gt;
&lt;li&gt;Through the Rename Users smart service (bulk rename enabled)&lt;/li&gt;
&lt;li&gt;Through the&amp;nbsp;&lt;code&gt;a!renameUsers()&lt;/code&gt; expression function that calls the smart service (bulk rename enabled)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;See the following documentation for more details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/20.1/Appian_Release_Notes.html#change-usernames-within-appian" rel="noopener noreferrer" target="_blank"&gt;20.1 release notes&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/User_Management.html#administration-console" rel="noopener noreferrer" target="_blank"&gt;User Management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Rename_Users_Smart_Service.html#a!renameusers()" rel="noopener noreferrer" target="_blank"&gt;Rename Users Smart Service &amp;amp; a!renameUsers()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;19.4 and earlier (self-managed only)&lt;/h3&gt;
&lt;h4&gt;Note the following:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#ff0000;"&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt;
&lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt;
&lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt;
&lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Execute the following commands first to verify that the rename will execute successfully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt;
&lt;li&gt;Check that the user has been renamed.&lt;/li&gt;
&lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;September 2022&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item><item><title>KB-1089 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian/revision/7</link><pubDate>Fri, 23 Sep 2022 21:24:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Elly Meng on 9/23/2022 9:24:29 PM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt;
&lt;div class="content"&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;20.1 and later&lt;/h3&gt;
&lt;p&gt;Beginning in Appian 20.1, there&amp;nbsp;are three new methods to rename users directly from the product and without the need for an outage. All methods can be performed by a System Administrator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the user profile page (Admin Console and Appian Designer)&lt;/li&gt;
&lt;li&gt;Through the Rename Users smart service (bulk rename enabled)&lt;/li&gt;
&lt;li&gt;Through the&amp;nbsp;&lt;code&gt;a!renameUsers()&lt;/code&gt; expression function that calls the smart service (bulk rename enabled)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;See the following documentation for more details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/20.1/Appian_Release_Notes.html#change-usernames-within-appian" rel="noopener noreferrer" target="_blank"&gt;20.1 release notes&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/User_Management.html#administration-console" rel="noopener noreferrer" target="_blank"&gt;User Management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Rename_Users_Smart_Service.html#a!renameusers()" rel="noopener noreferrer" target="_blank"&gt;Rename Users Smart Service &amp;amp; a!renameUsers()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;19.4 and earlier (Self-managed only)&lt;/h3&gt;
&lt;h4&gt;Note the following:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#ff0000;"&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt;
&lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt;
&lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt;
&lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Execute the following commands first to verify that the rename will execute successfully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt;
&lt;li&gt;Check that the user has been renamed.&lt;/li&gt;
&lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;September 2022&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item><item><title>KB-1089 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian/revision/6</link><pubDate>Mon, 30 Mar 2020 22:06:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Parmida Borhani on 3/30/2020 10:06:40 PM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt; &lt;div class="content"&gt; &lt;div class="row content_container"&gt; &lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt; &lt;h2&gt;Instructions&lt;/h2&gt; &lt;h3&gt;20.1 and later&lt;/h3&gt; &lt;p&gt;Beginning in Appian 20.1, there&amp;nbsp;are three new methods to rename users directly from the product and without the need for an outage. All methods can be performed by a System Administrator.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;From the user profile page (Admin Console and Appian Designer)&lt;/li&gt; &lt;li&gt;Through the Rename Users smart service (bulk rename enabled)&lt;/li&gt; &lt;li&gt;Through the&amp;nbsp;&lt;code&gt;a!renameUsers()&lt;/code&gt; expression function that calls the smart service (bulk rename enabled)&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;See the following documentation for more details:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/20.1/Appian_Release_Notes.html#change-usernames-within-appian" rel="noopener noreferrer" target="_blank"&gt;20.1 release notes&lt;/a&gt;&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/User_Management.html#administration-console" rel="noopener noreferrer" target="_blank"&gt;User Management&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Rename_Users_Smart_Service.html#a!renameusers()" rel="noopener noreferrer" target="_blank"&gt;Rename Users Smart Service &amp;amp; a!renameUsers()&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;h3&gt;19.4 and earlier&lt;/h3&gt; &lt;h4&gt;Self-managed&lt;/h4&gt; &lt;h4&gt;Note the following:&lt;/h4&gt; &lt;ul&gt; &lt;li&gt;&lt;span style="color:#ff0000;"&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt; &lt;/ul&gt; &lt;ol&gt; &lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt; &lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt; &lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt; &lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt; &lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;Execute the following commands first to verify that the rename will execute successfully: &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option: &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt; &lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt; &lt;li&gt;Check that the user has been renamed.&lt;/li&gt; &lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt; &lt;/ol&gt; &lt;h4&gt;Cloud&lt;/h4&gt; &lt;p&gt;Create a support case with Appian Technical Support and provide the following information:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;A time frame during off-hours to perform the user rename. A minimum of 2 hours is needed for user renames. During this time, the site will be inaccessible as the application server(s) will be shutdown.&lt;span&gt;&amp;nbsp;&lt;/span&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Depending on the size of the engines, Appian Technical Support may determine a longer time frame is needed. This will be determined and coordinated through the support case if necessary.&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;A csv file of usernames to be renamed in the format below. Each&amp;nbsp;&lt;code&gt;&amp;lt;old_username&amp;gt;,&amp;lt;new_username&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;pair should be on it&amp;#39;s own line. Appian Technical Support requires usernames to be provided in this format for user renames: &lt;div&gt; &lt;div&gt; &lt;div class="content-scrollable-wrapper"&gt; &lt;pre&gt;&lt;code&gt;&amp;lt;old_username_1&amp;gt;,&amp;lt;new_username_1&amp;gt; &amp;lt;old_username_2&amp;gt;,&amp;lt;new_username_2&amp;gt;&lt;/code&gt;&lt;/pre&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; &lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt; &lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt; &lt;/div&gt; &lt;p&gt;Last Reviewed:&amp;nbsp;March 2020&lt;/p&gt; &lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item><item><title>KB-2099 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian/revision/5</link><pubDate>Mon, 30 Mar 2020 20:07:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Rebecca Jonas on 3/30/2020 8:07:11 PM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt;
&lt;div class="content"&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;20.1 and later&lt;/h3&gt;
&lt;p&gt;Beginning in Appian 20.1, there&amp;nbsp;are three new methods to rename users directly from the product and without the need for an outage. All methods can be performed by a System Administrator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the user profile page (Admin Console and Appian Designer)&lt;/li&gt;
&lt;li&gt;Through the Rename Users smart service (bulk rename enabled)&lt;/li&gt;
&lt;li&gt;Through the&amp;nbsp;&lt;code&gt;a!renameUsers()&lt;/code&gt; expression function that calls the smart service (bulk rename enabled)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;See the following documentation for more details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/20.1/Appian_Release_Notes.html#change-usernames-within-appian" rel="noopener noreferrer" target="_blank"&gt;20.1 release notes&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/User_Management.html#administration-console" rel="noopener noreferrer" target="_blank"&gt;User Management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Rename_Users_Smart_Service.html#a!renameusers()" rel="noopener noreferrer" target="_blank"&gt;Rename Users Smart Service &amp;amp; a!renameUsers()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;19.4 and earlier&lt;/h3&gt;
&lt;h4&gt;On-Premise&lt;/h4&gt;
&lt;h4&gt;Note the following:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#ff0000;"&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt;
&lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt;
&lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt;
&lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Execute the following commands first to verify that the rename will execute successfully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt;
&lt;li&gt;Check that the user has been renamed.&lt;/li&gt;
&lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Cloud&lt;/h4&gt;
&lt;p&gt;Create a support case with Appian Technical Support and provide the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A time frame during off-hours to perform the user rename. A minimum of 2 hours is needed for user renames. During this time, the site will be inaccessible as the application server(s) will be shutdown.&lt;span&gt;&amp;nbsp;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Depending on the size of the engines, Appian Technical Support may determine a longer time frame is needed. This will be determined and coordinated through the support case if necessary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A csv file of usernames to be renamed in the format below. Each&amp;nbsp;&lt;code&gt;&amp;lt;old_username&amp;gt;,&amp;lt;new_username&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;pair should be on it&amp;#39;s own line. Appian Technical Support requires usernames to be provided in this format for user renames:
&lt;div&gt;
&lt;div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;old_username_1&amp;gt;,&amp;lt;new_username_1&amp;gt;
&amp;lt;old_username_2&amp;gt;,&amp;lt;new_username_2&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2020&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item><item><title>DRAFT SP-3880 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian/revision/4</link><pubDate>Mon, 30 Mar 2020 00:35:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 3/30/2020 12:35:57 AM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt;
&lt;div class="content"&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;20.1 and later&lt;/h3&gt;
&lt;p&gt;Beginning in Appian 20.1, there&amp;nbsp;are three new methods to rename users directly from the product and without the need for an outage. All methods can be performed by a System Administrator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the user profile page (Admin Console and Appian Designer)&lt;/li&gt;
&lt;li&gt;Through a new Rename Users smart service (bulk rename enabled)&lt;/li&gt;
&lt;li&gt;Through a new &lt;code&gt;a!renameUsers()&lt;/code&gt; expression function that calls the smart service (bulk rename enabled)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;See the following documentation for more details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/20.1/Appian_Release_Notes.html#change-usernames-within-appian" rel="noopener noreferrer" target="_blank"&gt;20.1 release notes&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/User_Management.html#administration-console" rel="noopener noreferrer" target="_blank"&gt;User Management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Rename_Users_Smart_Service.html#a!renameusers()" rel="noopener noreferrer" target="_blank"&gt;Rename Users Smart Service &amp;amp; a!renameUsers()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;19.4 and earlier&lt;/h3&gt;
&lt;h4&gt;On-Premise&lt;/h4&gt;
&lt;h4&gt;Note the following:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#ff0000;"&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt;
&lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt;
&lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt;
&lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Execute the following commands first to verify that the rename will execute successfully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt;
&lt;li&gt;Check that the user has been renamed.&lt;/li&gt;
&lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Cloud&lt;/h4&gt;
&lt;p&gt;Create a support case with Appian Technical Support and provide the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A time frame during off-hours to perform the user rename. A minimum of 2 hours is needed for user renames. During this time, the site will be inaccessible as the application server(s) will be shutdown.&lt;span&gt;&amp;nbsp;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Depending on the size of the engines, Appian Technical Support may determine a longer time frame is needed. This will be determined and coordinated through the support case if necessary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A csv file of usernames to be renamed in the format below. Each&amp;nbsp;&lt;code&gt;&amp;lt;old_username&amp;gt;,&amp;lt;new_username&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;pair should be on it&amp;#39;s own line. Appian Technical Support requires usernames to be provided in this format for user renames:
&lt;div&gt;
&lt;div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;old_username_1&amp;gt;,&amp;lt;new_username_1&amp;gt;
&amp;lt;old_username_2&amp;gt;,&amp;lt;new_username_2&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2020&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item><item><title>DRAFT SP-3880 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian/revision/3</link><pubDate>Mon, 30 Mar 2020 00:32:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Parmida Borhani on 3/30/2020 12:32:20 AM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt;
&lt;div class="content"&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;20.1 and later&lt;/h3&gt;
&lt;p&gt;Beginning in Appian 20.1, there will be three new methods to rename users directly from the product and without the need for an outage. All methods can be performed by a System Administrator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From the user profile page (Admin Console and Appian Designer)&lt;/li&gt;
&lt;li&gt;Through a new Rename Users smart service (bulk rename enabled)&lt;/li&gt;
&lt;li&gt;Through a new &lt;code&gt;a!renameUsers()&lt;/code&gt; expression function that calls the smart service (bulk rename enabled)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;See the following documentation for more details:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/20.1/Appian_Release_Notes.html#change-usernames-within-appian" rel="noopener noreferrer" target="_blank"&gt;20.1 release notes&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/User_Management.html#administration-console" rel="noopener noreferrer" target="_blank"&gt;User Management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Rename_Users_Smart_Service.html#a!renameusers()" rel="noopener noreferrer" target="_blank"&gt;Rename Users Smart Service &amp;amp; a!renameUsers()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;19.4 and earlier&lt;/h3&gt;
&lt;h4&gt;On-Premise&lt;/h4&gt;
&lt;h4&gt;Note the following:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#ff0000;"&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt;
&lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt;
&lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt;
&lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Execute the following commands first to verify that the rename will execute successfully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt;
&lt;li&gt;Check that the user has been renamed.&lt;/li&gt;
&lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Cloud&lt;/h4&gt;
&lt;p&gt;Create a support case with Appian Technical Support and provide the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A time frame during off-hours to perform the user rename. A minimum of 2 hours is needed for user renames. During this time, the site will be inaccessible as the application server(s) will be shutdown.&lt;span&gt;&amp;nbsp;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Depending on the size of the engines, Appian Technical Support may determine a longer time frame is needed. This will be determined and coordinated through the support case if necessary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A csv file of usernames to be renamed in the format below. Each&amp;nbsp;&lt;code&gt;&amp;lt;old_username&amp;gt;,&amp;lt;new_username&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;pair should be on it&amp;#39;s own line. Appian Technical Support requires usernames to be provided in this format for user renames:
&lt;div&gt;
&lt;div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;old_username_1&amp;gt;,&amp;lt;new_username_1&amp;gt;
&amp;lt;old_username_2&amp;gt;,&amp;lt;new_username_2&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2020&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item><item><title>DRAFT SP-3880 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian/revision/2</link><pubDate>Fri, 27 Mar 2020 05:09:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Parmida Borhani on 3/27/2020 5:09:44 AM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt;
&lt;div class="content"&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;20.1 and later&lt;/h3&gt;
&lt;p&gt;Beginning in Appian 20.1, users can be renamed directly from the product and without the need for an outage. Please see the documentation for more details.&lt;/p&gt;
&lt;h3&gt;19.4 and earlier&lt;/h3&gt;
&lt;h4&gt;On-Premise&lt;/h4&gt;
&lt;h4&gt;Note the following:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#ff0000;"&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt;
&lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt;
&lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt;
&lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Execute the following commands first to verify that the rename will execute successfully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt;
&lt;li&gt;Check that the user has been renamed.&lt;/li&gt;
&lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Cloud&lt;/h4&gt;
&lt;p&gt;Create a support case with Appian Technical Support and provide the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A time frame during off-hours to perform the user rename. A minimum of 2 hours is needed for user renames. During this time, the site will be inaccessible as the application server(s) will be shutdown.&lt;span&gt;&amp;nbsp;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Depending on the size of the engines, Appian Technical Support may determine a longer time frame is needed. This will be determined and coordinated through the support case if necessary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A csv file of usernames to be renamed in the format below. Each&amp;nbsp;&lt;code&gt;&amp;lt;old_username&amp;gt;,&amp;lt;new_username&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;pair should be on it&amp;#39;s own line. Appian Technical Support requires usernames to be provided in this format for user renames:
&lt;div&gt;
&lt;div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;old_username_1&amp;gt;,&amp;lt;new_username_1&amp;gt;
&amp;lt;old_username_2&amp;gt;,&amp;lt;new_username_2&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2020&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item><item><title>DRAFT SP-3880 How to rename a user in Appian</title><link>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian/revision/1</link><pubDate>Fri, 27 Mar 2020 05:04:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:703c49cf-659f-4705-b1c1-7271467eae28</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1759/kb-1089-how-to-rename-a-user-in-appian#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Parmida Borhani on 3/27/2020 5:04:37 AM&lt;br /&gt;
&lt;h2 class="name"&gt;Purpose&lt;/h2&gt;
&lt;div class="content"&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article includes instructions on how to change/edit/alter a user&amp;#39;s username in Appian. If the account was created with the wrong name, the suggested approach is to create a new one with the desired name and deactivate the other one. This is feasible for accounts which are not yet associated with processes. If it is not feasible to create a new user, follow the instructions below.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;20.1 and later&lt;/h3&gt;
&lt;p&gt;Beginning in Appian 20.1, users can be renamed directly from the product and without the need for an outage. Please see the documentation for more details.&lt;/p&gt;
&lt;h3&gt;19.4 and earlier&lt;/h3&gt;
&lt;h4&gt;On-Premise&lt;/h4&gt;
&lt;h4&gt;Note the following:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;&lt;b&gt;You MUST shut down all application server instances before running the rename. Failure to do so may cause user synchronization issues that can significantly degrade the end user experience on the site.&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Renaming users using this method is resource intensive, because it acts as a simple search and replace in every engine in Appian.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;These steps must be executed during off-hours.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;You will also need to update the username in any other systems where it is saved, including business datasources.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Contact Appian Technical Support for the correct version of the script&amp;nbsp;based on the version of Appian used.&amp;nbsp;If any of the user(s) being renamed are referenced in Decision objects, notify Appian Technical Support.&lt;/li&gt;
&lt;li&gt;Disable&amp;nbsp;&lt;a href="/b/appmarket/posts/ldap-tools"&gt;LDAP Synchronization&lt;/a&gt;. It is important this remains disabled during the process, otherwise it is possible that the user will get re-introduced with the old username.&lt;/li&gt;
&lt;li&gt;Unzip the script under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;on the server running the engines.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Grant execute permissions on the file if using Linux. Otherwise just start a command line as the Administrator.&lt;/li&gt;
&lt;li&gt;Navigate to&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Execute the following commands first to verify that the rename will execute successfully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; --validate&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If there are any warnings, review your input parameters or contact Appian Support. If the script verifies that the new usernames are available and that all the old usernames exist, proceed with the following command:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Linux:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;./renameUsers.sh --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows:&lt;/strong&gt;&amp;nbsp;&lt;code&gt;renameUsers.bat --oldUsernames &amp;quot;oldUsername1;oldUsername2&amp;quot; --newUsernames &amp;quot;newUsername1;newUsername2&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Alternatively, if renaming a larger number of users, use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;--usernamesFile&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;option:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Linux&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;./renameUsers.sh --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot; &amp;amp;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windows&lt;/strong&gt;:&amp;nbsp;&lt;code&gt;renameUsers.bat --usernamesFile &amp;quot;/home/john.smith/names.csv&amp;quot;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The usernamesFile should be named like&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;filename&amp;gt;.csv&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and have each line formatted as follows:&amp;nbsp;&lt;code&gt;&amp;lt;oldUsername&amp;gt;,&amp;lt;newUsername&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once the script is finished, an output file will get generated:&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\_admin\_scripts\renameUsers_sql_queries_MM_DD_YY_hhmmss.sql&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Copy the generated SQL statements, log into the database containing the Appian data source with a user that has&amp;nbsp;&lt;strong&gt;SELECT&amp;nbsp;&lt;/strong&gt;and&amp;nbsp;&lt;strong&gt;UPDATE&lt;/strong&gt;&amp;nbsp;privileges over the database, and execute them. This will update the username in the primary DB. If the user has never logged into the environment, there will be no username to update in the primary DB.&lt;/li&gt;
&lt;li&gt;Check that the user has been renamed.&lt;/li&gt;
&lt;li&gt;You can re-enable LDAP Synchronization once the username has been updated.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Cloud&lt;/h4&gt;
&lt;p&gt;Create a support case with Appian Technical Support and provide the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A time frame during off-hours to perform the user rename. A minimum of 2 hours is needed for user renames. During this time, the site will be inaccessible as the application server(s) will be shutdown.&lt;span&gt;&amp;nbsp;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Depending on the size of the engines, Appian Technical Support may determine a longer time frame is needed. This will be determined and coordinated through the support case if necessary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A csv file of usernames to be renamed in the format below. Each&amp;nbsp;&lt;code&gt;&amp;lt;old_username&amp;gt;,&amp;lt;new_username&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;pair should be on it&amp;#39;s own line. Appian Technical Support requires usernames to be provided in this format for user renames:
&lt;div&gt;
&lt;div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;old_username_1&amp;gt;,&amp;lt;new_username_1&amp;gt;
&amp;lt;old_username_2&amp;gt;,&amp;lt;new_username_2&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2020&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: rename users, how-to, users, product use cases, completed use cases&lt;/div&gt;
</description></item></channel></rss>