<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Conversion of profile username to lower case</title><link>https://community.appian.com/discussions/f/process/20035/conversion-of-profile-username-to-lower-case</link><description>We are currently using Appian 20.3. We have a requirement to change the username to lower case when it is being added to a group. Is there any Appian function to convert the existing username in the profile to lower case?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Conversion of profile username to lower case</title><link>https://community.appian.com/thread/78393?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 18:24:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f6a842a-b037-41c2-ab7f-cdd1a5137214</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;You&amp;#39;ll have to use the function getdistinctusers() to return the list of all the users in a group. Then, you can use the exact() function to find items that don&amp;#39;t match the casing that you&amp;#39;re looking for. Something like this should work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;reject(
  fn!isnull,
  a!forEach(
    items: getdistinctusers(
      cons!GROUP_NAME
    ),
    expression: a!localVariables(
      local!firstCharacter: left(tostring(fv!item)),
      if(
        exact(lower(local!firstCharacter), local!firstCharacter),
        null,
        fv!item
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conversion of profile username to lower case</title><link>https://community.appian.com/thread/78374?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 04:15:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5b601d1-60d8-4a8e-9f7d-dc04631008fd</guid><dc:creator>ganeshbabuj</dc:creator><description>&lt;p&gt;20.3 we got a a!renameuser to perform the operation . but can we have a rule which could get us all id&amp;#39;s on the env with starting character as uppercase?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conversion of profile username to lower case</title><link>https://community.appian.com/thread/78354?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 13:32:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23017479-6e91-4724-871d-8e571b3a77ca</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I&amp;#39;d suggest the &lt;a href="https://docs.appian.com/suite/help/latest/fnc_text_lower.html"&gt;lower() function&lt;/a&gt;&amp;nbsp;-&amp;nbsp;It takes any text and converts all the characters to lowercase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>