<?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 Idira Identity - User Object Reference for Dynamic Roles in Workforce Identity Articles</title>
    <link>https://live.paloaltonetworks.com/t5/workforce-identity-articles/idira-identity-user-object-reference-for-dynamic-roles/ta-p/1429843</link>
    <description>&lt;P&gt;Complete reference for Idira Identity User object in Dynamic Role scripts. Includes enumeration script and documentation showing all 25 available properties, methods, and usage. Covers limitations, workarounds, and differences between Dynamic Roles vs Application Policies. Essential for Identity admins working with RBAC.&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;How to Use This Script&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#how-to-use-this-script" id="user-content-how-to-use-this-script" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;OL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Open Idira Identity Admin Portal&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Navigate to&lt;/STRONG&gt;: Access &amp;gt; Roles&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Create New Role&lt;/STRONG&gt;: Click "Add Role" or edit existing role&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Enable Dynamic Role&lt;/STRONG&gt;: Check "This is a dynamic role based on a script"&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Paste Script&lt;/STRONG&gt;: Copy contents of&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;user-object-reference.js&lt;/CODE&gt;&amp;nbsp;into the script editor&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Test Script&lt;/STRONG&gt;:
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding-left: 2em;"&gt;&lt;LI style="box-sizing: border-box;"&gt;Click "Test User" button&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Select a test user from the list&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Click "Test"&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Review Trace Output&lt;/STRONG&gt;: Check the trace output to see all available User properties and their values&lt;/LI&gt;&lt;/OL&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Note&lt;/STRONG&gt;: The script will show different properties depending on the user type (Cloud Directory vs Active Directory).&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Quick Reference&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#quick-reference" id="user-content-quick-reference" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Top-Level Properties (Direct Access)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#top-level-properties-direct-access" id="user-content-top-level-properties-direct-access" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Uuid&lt;/SPAN&gt;                      &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// User's UUID&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Username&lt;/SPAN&gt;                  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Username&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;DisplayName&lt;/SPAN&gt;               &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Display name&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Mail&lt;/SPAN&gt;                      &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Email address&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;UserType&lt;/SPAN&gt;                  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// "CUS" (Cloud), "AD", "FDS", "LDAP"&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;DirectoryServiceUuid&lt;/SPAN&gt;      &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Directory service UUID&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;RiskLevel&lt;/SPAN&gt;                 &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// "No Risk", "Low", "Medium", "High", "Unknown"&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;IsIdentityCookiePresent&lt;/SPAN&gt;   &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;IsYubikeyOtpConfigured&lt;/SPAN&gt;    &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;OrgId&lt;/SPAN&gt;                     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Organization ID (usually null)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;                &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// DataEntity object&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Available Properties (via PropertyNames)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#available-properties-via-propertynames" id="user-content-available-properties-via-propertynames" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;These are the&amp;nbsp;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;ONLY&lt;/STRONG&gt;&amp;nbsp;properties available in Dynamic Role scripts:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Alias'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                    &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// User alias&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'CreateDate'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;               &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Account creation date&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'DisplayName'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;              &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Display name&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'InEverybodyRole'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;          &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean (True/False)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'LastModifiedDate'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;         &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Last modification date&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'LastPasswordChangeDate'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;   &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Password change date&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Mail'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Email address&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'MobileNumber'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;             &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Mobile phone&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Name'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Username&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'OauthClient'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;              &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean (False for regular users)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'ReportsTo'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Manager/supervisor&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'role_membership'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;          &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Role names&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'State'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                    &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Value: "None" (not useful)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Version'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Version number&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Note:&lt;/STRONG&gt;&amp;nbsp;Custom attributes for Cloud Directory users use underscore suffix (e.g.,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;country_&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;department_&lt;/CODE&gt;).&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Access Methods&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#access-methods" id="user-content-access-methods" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Option 1: User.Get()&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#option-1-userget" id="user-content-option-1-userget" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;email&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Mail'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'department_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Custom attribute&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Option 2: User.Properties.Get()&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#option-2-userpropertiesget" id="user-content-option-2-userpropertiesget" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;email&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Mail'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'department_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;Both methods are equivalent.&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Helper Methods&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#helper-methods" id="user-content-helper-methods" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check if property exists (even if null/empty)&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Has&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'MobileNumber'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt; ... &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check if property has actual value&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;HasNonNullOrWhitespaceValue&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Department'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt; ... &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Safe get (returns null if not found)&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;country&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;TryGet&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'country_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Role/Group Functions&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#rolegroup-functions" id="user-content-rolegroup-functions" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InRole&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;roleId&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                         &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check role by ID&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InRoleByNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;roleNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;             &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check multiple roles by name&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InEffectiveGroupByNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;groupNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check effective groups&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InEffectiveGroupByDNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;DNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;           &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check groups by DN&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InDirectGroupByNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;groupNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check direct groups&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InDirectGroupByDNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;DNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;              &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check direct groups by DN&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Practical Examples&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#practical-examples" id="user-content-practical-examples" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check role membership&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-role-membership" id="user-content-check-role-membership" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InRole&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'abc12345-uuid-here'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check custom attribute (Cloud Directory)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-custom-attribute-cloud-directory" id="user-content-check-custom-attribute-cloud-directory" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;UserType&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;==&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'CUS'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;country&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'country_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;country&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;===&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Poland'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check Active Directory OU&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-active-directory-ou" id="user-content-check-active-directory-ou" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;UserType&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;==&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'AD'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dn&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'distinguishedname'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dn&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dn&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;indexOf&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'OU=Sales'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check multiple conditions&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-multiple-conditions" id="user-content-check-multiple-conditions" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'department_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;hasPhone&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;HasNonNullOrWhitespaceValue&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'MobileNumber'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;===&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Engineering'&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;hasPhone&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Important Limitations&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#important-limitations" id="user-content-important-limitations" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; NOT Available in Dynamic Roles&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#-not-available-in-dynamic-roles" id="user-content--not-available-in-dynamic-roles" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;The following attributes&amp;nbsp;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;always return null&lt;/STRONG&gt;&amp;nbsp;in Dynamic Role scripts:&lt;/P&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Status&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;StatusEnum&lt;/CODE&gt;&amp;nbsp;- User status (Active/Invited/Suspended)&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Enabled&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Locked&lt;/CODE&gt;&amp;nbsp;- Account state flags&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Password&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;PasswordHash&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;PasswordIsSet&lt;/CODE&gt;&amp;nbsp;- Security sensitive&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;FirstName&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;LastName&lt;/CODE&gt;&amp;nbsp;- Name components&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Photo&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;PictureUrl&lt;/CODE&gt;&amp;nbsp;- Profile images&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;EffectiveGroupObjects&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;RoleObjects&lt;/CODE&gt;&amp;nbsp;- Complex objects&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Most group/role attributes (use methods instead)&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; NOT Available - Advanced Features&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#-not-available---advanced-features" id="user-content--not-available---advanced-features" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;module()&lt;/CODE&gt;&amp;nbsp;function - Cannot use&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;module('User')&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;module('SqlQuery')&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;SQL database queries&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;User status checking from database&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Solution for Status Checking&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#-solution-for-status-checking" id="user-content--solution-for-status-checking" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;Use&amp;nbsp;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Authentication Policies&lt;/STRONG&gt;&amp;nbsp;with SQL queries instead:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Application Policy Script (NOT Dynamic Role)&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;sqlMod&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-smi" style="box-sizing: border-box;color: #1f2328;"&gt;module&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'SqlQuery'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;result&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;sqlMod&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;query&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"SELECT StatusEnum FROM User WHERE Username = '"&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Username&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"'"&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;userStatus&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;result&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;StatusEnum&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;userStatus&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;===&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"Invited"&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;policy&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;AuthenticationProfile&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"Email MFA Required"&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;User Type Differences&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#user-type-differences" id="user-content-user-type-differences" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Cloud Directory (&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: inherit;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0px 0.2em;"&gt;UserType: 'CUS'&lt;/CODE&gt;)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#cloud-directory-usertype-cus" id="user-content-cloud-directory-usertype-cus" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 13.3px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;Custom attributes with underscore:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;country_&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;department_&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;employee_id_&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Access via:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;User.Get('country_')&lt;/CODE&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Active Directory (&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: inherit;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0px 0.2em;"&gt;UserType: 'AD'&lt;/CODE&gt;)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#active-directory-usertype-ad" id="user-content-active-directory-usertype-ad" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 13.3px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;Standard AD attributes:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;distinguishedname&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;samaccountname&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Access via:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;User.Get('distinguishedname')&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Use DN for OU membership checks&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 05 Nov 2026 19:45:30 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2026-11-05T19:45:30Z</dc:date>
    <item>
      <title>Idira Identity - User Object Reference for Dynamic Roles</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-articles/idira-identity-user-object-reference-for-dynamic-roles/ta-p/1429843</link>
      <description>&lt;P&gt;Complete reference for Idira Identity User object in Dynamic Role scripts. Includes enumeration script and documentation showing all 25 available properties, methods, and usage. Covers limitations, workarounds, and differences between Dynamic Roles vs Application Policies. Essential for Identity admins working with RBAC.&lt;/P&gt;
&lt;H3&gt;Steps&lt;/H3&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;How to Use This Script&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#how-to-use-this-script" id="user-content-how-to-use-this-script" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;OL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Open Idira Identity Admin Portal&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Navigate to&lt;/STRONG&gt;: Access &amp;gt; Roles&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Create New Role&lt;/STRONG&gt;: Click "Add Role" or edit existing role&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Enable Dynamic Role&lt;/STRONG&gt;: Check "This is a dynamic role based on a script"&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Paste Script&lt;/STRONG&gt;: Copy contents of&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;user-object-reference.js&lt;/CODE&gt;&amp;nbsp;into the script editor&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Test Script&lt;/STRONG&gt;:
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding-left: 2em;"&gt;&lt;LI style="box-sizing: border-box;"&gt;Click "Test User" button&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Select a test user from the list&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Click "Test"&lt;/LI&gt;&lt;/UL&gt;
&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Review Trace Output&lt;/STRONG&gt;: Check the trace output to see all available User properties and their values&lt;/LI&gt;&lt;/OL&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Note&lt;/STRONG&gt;: The script will show different properties depending on the user type (Cloud Directory vs Active Directory).&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Quick Reference&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#quick-reference" id="user-content-quick-reference" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Top-Level Properties (Direct Access)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#top-level-properties-direct-access" id="user-content-top-level-properties-direct-access" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Uuid&lt;/SPAN&gt;                      &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// User's UUID&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Username&lt;/SPAN&gt;                  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Username&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;DisplayName&lt;/SPAN&gt;               &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Display name&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Mail&lt;/SPAN&gt;                      &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Email address&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;UserType&lt;/SPAN&gt;                  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// "CUS" (Cloud), "AD", "FDS", "LDAP"&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;DirectoryServiceUuid&lt;/SPAN&gt;      &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Directory service UUID&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;RiskLevel&lt;/SPAN&gt;                 &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// "No Risk", "Low", "Medium", "High", "Unknown"&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;IsIdentityCookiePresent&lt;/SPAN&gt;   &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;IsYubikeyOtpConfigured&lt;/SPAN&gt;    &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;OrgId&lt;/SPAN&gt;                     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Organization ID (usually null)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;                &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// DataEntity object&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Available Properties (via PropertyNames)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#available-properties-via-propertynames" id="user-content-available-properties-via-propertynames" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;These are the&amp;nbsp;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;ONLY&lt;/STRONG&gt;&amp;nbsp;properties available in Dynamic Role scripts:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Alias'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                    &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// User alias&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'CreateDate'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;               &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Account creation date&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'DisplayName'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;              &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Display name&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'InEverybodyRole'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;          &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean (True/False)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'LastModifiedDate'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;         &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Last modification date&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'LastPasswordChangeDate'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;   &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Password change date&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Mail'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Email address&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'MobileNumber'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;             &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Mobile phone&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Name'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Username&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'OauthClient'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;              &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Boolean (False for regular users)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'ReportsTo'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Manager/supervisor&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'role_membership'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;          &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Role names&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'State'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                    &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Value: "None" (not useful)&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Version'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Version number&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Note:&lt;/STRONG&gt;&amp;nbsp;Custom attributes for Cloud Directory users use underscore suffix (e.g.,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;country_&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;department_&lt;/CODE&gt;).&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Access Methods&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#access-methods" id="user-content-access-methods" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Option 1: User.Get()&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#option-1-userget" id="user-content-option-1-userget" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;email&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Mail'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'department_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Custom attribute&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Option 2: User.Properties.Get()&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#option-2-userpropertiesget" id="user-content-option-2-userpropertiesget" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;email&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Mail'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'department_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;Both methods are equivalent.&lt;/P&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Helper Methods&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#helper-methods" id="user-content-helper-methods" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check if property exists (even if null/empty)&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Has&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'MobileNumber'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt; ... &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check if property has actual value&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;HasNonNullOrWhitespaceValue&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Department'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt; ... &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Safe get (returns null if not found)&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;country&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;TryGet&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'country_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Role/Group Functions&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#rolegroup-functions" id="user-content-rolegroup-functions" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InRole&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;roleId&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;                         &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check role by ID&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InRoleByNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;roleNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;             &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check multiple roles by name&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InEffectiveGroupByNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;groupNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;  &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check effective groups&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InEffectiveGroupByDNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;DNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;           &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check groups by DN&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InDirectGroupByNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;groupNames&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;     &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check direct groups&lt;/SPAN&gt;
&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InDirectGroupByDNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;DNs&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;              &lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Check direct groups by DN&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Practical Examples&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#practical-examples" id="user-content-practical-examples" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check role membership&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-role-membership" id="user-content-check-role-membership" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;InRole&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'abc12345-uuid-here'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check custom attribute (Cloud Directory)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-custom-attribute-cloud-directory" id="user-content-check-custom-attribute-cloud-directory" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;UserType&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;==&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'CUS'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;country&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'country_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;country&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;===&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Poland'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check Active Directory OU&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-active-directory-ou" id="user-content-check-active-directory-ou" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;UserType&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;==&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'AD'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dn&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'distinguishedname'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dn&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dn&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;indexOf&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'OU=Sales'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Check multiple conditions&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#check-multiple-conditions" id="user-content-check-multiple-conditions" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;Get&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'department_'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;hasPhone&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Properties&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;HasNonNullOrWhitespaceValue&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'MobileNumber'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;dept&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;===&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'Engineering'&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;hasPhone&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;return&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;Important Limitations&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#important-limitations" id="user-content-important-limitations" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; NOT Available in Dynamic Roles&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#-not-available-in-dynamic-roles" id="user-content--not-available-in-dynamic-roles" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;The following attributes&amp;nbsp;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;always return null&lt;/STRONG&gt;&amp;nbsp;in Dynamic Role scripts:&lt;/P&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Status&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;StatusEnum&lt;/CODE&gt;&amp;nbsp;- User status (Active/Invited/Suspended)&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Enabled&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Locked&lt;/CODE&gt;&amp;nbsp;- Account state flags&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Password&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;PasswordHash&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;PasswordIsSet&lt;/CODE&gt;&amp;nbsp;- Security sensitive&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;FirstName&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;LastName&lt;/CODE&gt;&amp;nbsp;- Name components&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;Photo&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;PictureUrl&lt;/CODE&gt;&amp;nbsp;- Profile images&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;EffectiveGroupObjects&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;RoleObjects&lt;/CODE&gt;&amp;nbsp;- Complex objects&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Most group/role attributes (use methods instead)&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; NOT Available - Advanced Features&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#-not-available---advanced-features" id="user-content--not-available---advanced-features" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;module()&lt;/CODE&gt;&amp;nbsp;function - Cannot use&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;module('User')&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;module('SqlQuery')&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;SQL database queries&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;User status checking from database&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Solution for Status Checking&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#-solution-for-status-checking" id="user-content--solution-for-status-checking" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 12.5px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;Use&amp;nbsp;&lt;STRONG style="box-sizing: border-box;font-weight: 600;"&gt;Authentication Policies&lt;/STRONG&gt;&amp;nbsp;with SQL queries instead:&lt;/P&gt;
&lt;DIV class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" style="box-sizing: border-box;margin-bottom: 16px;background-color: #f6f8fa;justify-content: space-between;display: flex;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;overflow: auto;"&gt;
&lt;PRE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;margin-top: 0px;margin-bottom: 0px;tab-size: 4;overflow-wrap: normal;padding: 16px;color: #1f2328;background-color: #f6f8fa;border-radius: 6px;line-height: 1.45;overflow: auto;word-break: normal;min-height: 52px;"&gt;&lt;SPAN class="pl-c" style="box-sizing: border-box;color: #59636e;"&gt;// Application Policy Script (NOT Dynamic Role)&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;sqlMod&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-smi" style="box-sizing: border-box;color: #1f2328;"&gt;module&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;'SqlQuery'&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;result&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;sqlMod&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en" style="box-sizing: border-box;color: #6639ba;"&gt;query&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"SELECT StatusEnum FROM User WHERE Username = '"&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="pl-v" style="box-sizing: border-box;color: #953800;"&gt;User&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;Username&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;+&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"'"&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;userStatus&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;result&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;StatusEnum&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="pl-k" style="box-sizing: border-box;color: #cf222e;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;userStatus&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;===&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"Invited"&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="pl-s1" style="box-sizing: border-box;"&gt;policy&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;AuthenticationProfile&lt;/SPAN&gt; &lt;SPAN class="pl-c1" style="box-sizing: border-box;color: #0550ae;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-s" style="box-sizing: border-box;color: #0a3069;"&gt;"Email MFA Required"&lt;/SPAN&gt;&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="pl-kos" style="box-sizing: border-box;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;DIV class="zeroclipboard-container" style="box-sizing: border-box;animation: auto ease 0s 1 normal none running none;display: block;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H2 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.5em;font-weight: 600;line-height: 1.25;border-bottom: 0.8px solid rgba(209, 217, 224, 0.7);padding-bottom: 0.3em;"&gt;User Type Differences&lt;/H2&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#user-type-differences" id="user-content-user-type-differences" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 19px;left: -28px;transform: translateY(calc(-50% - 0.3rem));text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Cloud Directory (&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: inherit;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0px 0.2em;"&gt;UserType: 'CUS'&lt;/CODE&gt;)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#cloud-directory-usertype-cus" id="user-content-cloud-directory-usertype-cus" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 13.3px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;Custom attributes with underscore:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;country_&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;department_&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;employee_id_&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Access via:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;User.Get('country_')&lt;/CODE&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV class="markdown-heading" dir="auto" style="box-sizing: border-box;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;
&lt;H3 class="heading-element" dir="auto" style="box-sizing: border-box;margin-top: 24px;margin-bottom: 16px;font-size: 1.25em;font-weight: 600;line-height: 1.25;"&gt;Active Directory (&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: inherit;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0px 0.2em;"&gt;UserType: 'AD'&lt;/CODE&gt;)&lt;/H3&gt;
&lt;A class="anchor" href="https://github.com/lprzyb/cyberark-identity-dynamic-roles-attributes-js?tab=readme-ov-file#active-directory-usertype-ad" id="user-content-active-directory-usertype-ad" style="box-sizing: border-box;background-color: rgba(0, 0, 0, 0);color: #0969da;text-decoration-line: underline;float: left;padding-right: 4px;margin: auto;line-height: 1;border-radius: 6px;opacity: 0;justify-content: center;align-items: center;width: 28px;height: 28px;display: flex;top: 13.3px;left: -28px;transform: translateY(-50%);text-underline-offset: 0.2rem;" target="_blank"&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;UL dir="auto" style="box-sizing: border-box;margin-top: 0px;margin-bottom: 16px;padding-left: 2em;color: #1f2328;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size: 16px;white-space: normal;background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;Standard AD attributes:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;distinguishedname&lt;/CODE&gt;,&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;samaccountname&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Access via:&amp;nbsp;&lt;CODE style="box-sizing: border-box;font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;font-size: 13.6px;tab-size: 4;white-space: break-spaces;background-color: rgba(129, 139, 152, 0.12);border-radius: 6px;margin: 0px;padding: 0.2em 0.4em;"&gt;User.Get('distinguishedname')&lt;/CODE&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box;margin-top: 0.25em;"&gt;Use DN for OU membership checks&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 05 Nov 2026 19:45:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-articles/idira-identity-user-object-reference-for-dynamic-roles/ta-p/1429843</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-11-05T19:45:30Z</dc:date>
    </item>
  </channel>
</rss>

