<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article How to log into a SAML application with a different username than the user's Idira username in Workforce Identity Articles</title>
    <link>https://live.paloaltonetworks.com/t5/workforce-identity-articles/how-to-log-into-a-saml-application-with-a-different-username/ta-p/1429609</link>
    <description>&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;In some situations, a web application may require a different username than the username used to log into Idira Identity with. By default, the SAML application templates in Idira Identity will use either the user’s &lt;SPAN style="font-family: Courier;"&gt;userprincipalname&lt;/SPAN&gt; or &lt;SPAN style="font-family: Courier;"&gt;email address&lt;/SPAN&gt; as the username for logins. This article will go through several methods in Idira Identity for configuring an alternate username.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;H2 style="text-align: start;margin-top: 3px;"&gt;&lt;SPAN style="font-size: 13pt;"&gt;&lt;SPAN style="break-after: avoid;"&gt;&lt;SPAN style="font-family: 'Calibri Light', sans-serif;"&gt;&lt;SPAN style="color: #2f5496;"&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Method 1: Configuring User &amp;gt; Application Settings&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;OL&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;In the Admin Portal, go to &lt;B&gt;Core Services &amp;gt; Users&lt;/B&gt;, then click the user you want to configure. Go to &lt;B&gt;Application Settings&lt;/B&gt; and click on &lt;B&gt;Add&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv7.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97319i972E4985CFF68BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv7.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL start="2"&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Select the web application that you want to use an alternate username for and click &lt;B&gt;Save&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Enter alternate username into the &lt;B&gt;User Name&lt;/B&gt; field and click &lt;B&gt;OK&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv8.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97320i3B073B08D26E3584/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv8.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;You will notice the &lt;B&gt;User Name&lt;/B&gt; for the selected web application is different than the user’s Idira username.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv9.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97321i2D4D1E9F005947A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv9.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;This method can also be used to enter a predefined password unique to the end user, for non-SAML applications that uses a password for authentication.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 style="text-align: start;margin-top: 3px;"&gt;&lt;SPAN style="font-size: 13pt;"&gt;&lt;SPAN style="break-after: avoid;"&gt;&lt;SPAN style="font-family: 'Calibri Light', sans-serif;"&gt;&lt;SPAN style="color: #2f5496;"&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Method 2: Using a username stored in Additional Attributes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Custom attributes can be created in Idira Identity by going to &lt;B&gt;Settings &amp;gt; Customization &amp;gt; Additional Attributes &lt;/B&gt;and click&lt;B&gt; Add&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvA.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97322i5B53A8F2FD0D83A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvA.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;The name must contain an underscore. Select &lt;B&gt;Text&lt;/B&gt; for &lt;B&gt;Type&lt;/B&gt;. Optionally select &lt;B&gt;User Editable&lt;/B&gt;. User Editable enables the user to populate or edit this value through the &lt;B&gt;User Portal &amp;gt; Account &amp;gt; Personal Profile &amp;gt; Additional Attributes&lt;/B&gt;. Click &lt;B&gt;Add&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvB.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97323i12BEF3FC236A6686/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvB.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;To select the Additional Attribute value as a username, go to the &lt;B&gt;Account Mapping&lt;/B&gt; section for the web application that will use an alternate username. Select &lt;B&gt;Account Mapping Script&lt;/B&gt;.&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvC.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97324iC56E7BD0852128B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvC.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;In the script field enter: LoginUser.Username = LoginUser.Get("&lt;SPAN style="color: red;"&gt;name of the Additional Attribute&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;For example, if the Additional Attribute field name is “Alt_username” then enter: LoginUser.Username = LoginUser.Get("&lt;SPAN style="color: red;"&gt;Alt_username&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="3"&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Click &lt;B&gt;Save&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;There are 2 advantages for using Additional Attributes instead of user’s Application Settings.&lt;BR /&gt;1. Additional Attributes are included in the Bulk import csv and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;2. Additional Attributes can optionally be editable by the end user.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 style="text-align: start;margin-top: 3px;"&gt;&lt;SPAN style="font-size: 13pt;"&gt;&lt;SPAN style="break-after: avoid;"&gt;&lt;SPAN style="font-family: 'Calibri Light', sans-serif;"&gt;&lt;SPAN style="color: #2f5496;"&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Method 3: Customizing the username with Account Mapping Script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;The Account Mapping Script field can also be used to username modifications for different use cases. Below are some common examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;/* ==== Example #1: Append a different login domain to shortname. ====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;In this example, the user's AD and email domain is different than the domain used in the username.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="color: #5b9bd5;"&gt;LoginUser.Username = LoginUser.Shortname +"&lt;SPAN style="background-color: #f1c40f;"&gt;@differentdomain.com&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;==== Example #2: Prepend the domain name to the username =====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;In this example, the desired username format is domain-name\username. (For example: CYBR\john)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="color: #5b9bd5;"&gt;LoginUser.Username = "domain\\" + LoginUser.Shortname;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;==== Example #3: Shortname vs samaccountname =====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;FONT color="#000000" face="Calibri, sans-serif" size="3"&gt;If you selected Directory Service Field and entered samaccountname into the field, it would work for AD users&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;but not for Idira Directory users. The following script for Shortname will work for both AD and Idira Directory users. This script is probably the most commonly used.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="color: #5b9bd5;"&gt;LoginUser.Username = LoginUser.Shortname;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2026 19:47:57 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2026-11-05T19:47:57Z</dc:date>
    <item>
      <title>How to log into a SAML application with a different username than the user's Idira username</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-articles/how-to-log-into-a-saml-application-with-a-different-username/ta-p/1429609</link>
      <description>&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;In some situations, a web application may require a different username than the username used to log into Idira Identity with. By default, the SAML application templates in Idira Identity will use either the user’s &lt;SPAN style="font-family: Courier;"&gt;userprincipalname&lt;/SPAN&gt; or &lt;SPAN style="font-family: Courier;"&gt;email address&lt;/SPAN&gt; as the username for logins. This article will go through several methods in Idira Identity for configuring an alternate username.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;

&lt;H3&gt;Steps&lt;/H3&gt;
&lt;H2 style="text-align: start;margin-top: 3px;"&gt;&lt;SPAN style="font-size: 13pt;"&gt;&lt;SPAN style="break-after: avoid;"&gt;&lt;SPAN style="font-family: 'Calibri Light', sans-serif;"&gt;&lt;SPAN style="color: #2f5496;"&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Method 1: Configuring User &amp;gt; Application Settings&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;OL&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;In the Admin Portal, go to &lt;B&gt;Core Services &amp;gt; Users&lt;/B&gt;, then click the user you want to configure. Go to &lt;B&gt;Application Settings&lt;/B&gt; and click on &lt;B&gt;Add&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv7.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97319i972E4985CFF68BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv7.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL start="2"&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Select the web application that you want to use an alternate username for and click &lt;B&gt;Save&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Enter alternate username into the &lt;B&gt;User Name&lt;/B&gt; field and click &lt;B&gt;OK&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv8.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97320i3B073B08D26E3584/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv8.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;You will notice the &lt;B&gt;User Name&lt;/B&gt; for the selected web application is different than the user’s Idira username.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv9.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97321i2D4D1E9F005947A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv9.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003Ycv9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;This method can also be used to enter a predefined password unique to the end user, for non-SAML applications that uses a password for authentication.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 style="text-align: start;margin-top: 3px;"&gt;&lt;SPAN style="font-size: 13pt;"&gt;&lt;SPAN style="break-after: avoid;"&gt;&lt;SPAN style="font-family: 'Calibri Light', sans-serif;"&gt;&lt;SPAN style="color: #2f5496;"&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Method 2: Using a username stored in Additional Attributes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Custom attributes can be created in Idira Identity by going to &lt;B&gt;Settings &amp;gt; Customization &amp;gt; Additional Attributes &lt;/B&gt;and click&lt;B&gt; Add&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvA.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97322i5B53A8F2FD0D83A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvA.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;The name must contain an underscore. Select &lt;B&gt;Text&lt;/B&gt; for &lt;B&gt;Type&lt;/B&gt;. Optionally select &lt;B&gt;User Editable&lt;/B&gt;. User Editable enables the user to populate or edit this value through the &lt;B&gt;User Portal &amp;gt; Account &amp;gt; Personal Profile &amp;gt; Additional Attributes&lt;/B&gt;. Click &lt;B&gt;Add&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvB.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97323i12BEF3FC236A6686/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvB.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;To select the Additional Attribute value as a username, go to the &lt;B&gt;Account Mapping&lt;/B&gt; section for the web application that will use an alternate username. Select &lt;B&gt;Account Mapping Script&lt;/B&gt;.&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvC.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/97324iC56E7BD0852128B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvC.png" alt="ka3Vy00000979RBIAY__eid=ka3Vy00000979RB&amp;amp;feoid=00N2J000009R3kv&amp;amp;refid=0EM2J000003YcvC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;In the script field enter: LoginUser.Username = LoginUser.Get("&lt;SPAN style="color: red;"&gt;name of the Additional Attribute&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;For example, if the Additional Attribute field name is “Alt_username” then enter: LoginUser.Username = LoginUser.Get("&lt;SPAN style="color: red;"&gt;Alt_username&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="3"&gt;&lt;LI style="margin-left: 8px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: Calibri,sans-serif;"&gt;Click &lt;B&gt;Save&lt;/B&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;There are 2 advantages for using Additional Attributes instead of user’s Application Settings.&lt;BR /&gt;1. Additional Attributes are included in the Bulk import csv and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;2. Additional Attributes can optionally be editable by the end user.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 style="text-align: start;margin-top: 3px;"&gt;&lt;SPAN style="font-size: 13pt;"&gt;&lt;SPAN style="break-after: avoid;"&gt;&lt;SPAN style="font-family: 'Calibri Light', sans-serif;"&gt;&lt;SPAN style="color: #2f5496;"&gt;&lt;SPAN style="font-weight: normal;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Method 3: Customizing the username with Account Mapping Script&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;The Account Mapping Script field can also be used to username modifications for different use cases. Below are some common examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;/* ==== Example #1: Append a different login domain to shortname. ====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;In this example, the user's AD and email domain is different than the domain used in the username.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="color: #5b9bd5;"&gt;LoginUser.Username = LoginUser.Shortname +"&lt;SPAN style="background-color: #f1c40f;"&gt;@differentdomain.com&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;==== Example #2: Prepend the domain name to the username =====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;In this example, the desired username format is domain-name\username. (For example: CYBR\john)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="color: #5b9bd5;"&gt;LoginUser.Username = "domain\\" + LoginUser.Shortname;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;==== Example #3: Shortname vs samaccountname =====&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;FONT color="#000000" face="Calibri, sans-serif" size="3"&gt;If you selected Directory Service Field and entered samaccountname into the field, it would work for AD users&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;but not for Idira Directory users. The following script for Shortname will work for both AD and Idira Directory users. This script is probably the most commonly used.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: medium;"&gt;&lt;SPAN style="font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;SPAN style="font-family: Courier;"&gt;&lt;SPAN style="color: #5b9bd5;"&gt;LoginUser.Username = LoginUser.Shortname;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2026 19:47:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-articles/how-to-log-into-a-saml-application-with-a-different-username/ta-p/1429609</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-11-05T19:47:57Z</dc:date>
    </item>
  </channel>
</rss>

