<?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>topic Is it possible to create a dynamic role based on a static role ? CORA AI gave me an example, but it doesn't work in Workforce Identity Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/is-it-possible-to-create-a-dynamic-role-based-on-a-static-role/m-p/1376990#M1069</link>
    <description>&lt;CODE&gt;// Check if user is a member of a specific role
if (User.Roles &amp;amp;&amp;amp; User.Roles.length &amp;gt; 0) {
    for (var i = 0; i &amp;lt; User.Roles.length; i++) {
        if (User.Roles[i].Name === 'Target Role Name') {
            return true;
        }
    }
}
return false;&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2025 09:36:46 GMT</pubDate>
    <dc:creator>Pierryck_Dupont</dc:creator>
    <dc:date>2025-09-19T09:36:46Z</dc:date>
    <item>
      <title>Is it possible to create a dynamic role based on a static role ? CORA AI gave me an example, but it doesn't work</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/is-it-possible-to-create-a-dynamic-role-based-on-a-static-role/m-p/1376990#M1069</link>
      <description>&lt;CODE&gt;// Check if user is a member of a specific role
if (User.Roles &amp;amp;&amp;amp; User.Roles.length &amp;gt; 0) {
    for (var i = 0; i &amp;lt; User.Roles.length; i++) {
        if (User.Roles[i].Name === 'Target Role Name') {
            return true;
        }
    }
}
return false;&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 09:36:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/is-it-possible-to-create-a-dynamic-role-based-on-a-static-role/m-p/1376990#M1069</guid>
      <dc:creator>Pierryck_Dupont</dc:creator>
      <dc:date>2025-09-19T09:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a dynamic role based on a static role ? CORA AI gave me an example, but it doesn't work</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/is-it-possible-to-create-a-dynamic-role-based-on-a-static-role/m-p/1376991#M1070</link>
      <description>&lt;P&gt;After checking with our internal teams, we do not believe this is possible because as it doesn't have access to the full user information which would include roles. In other words, ironically this role scripting feature doesn't know what roles you're in.  If your use case is something like "If user is in role A, put in role B," then you can simply nest the roles though.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 13:07:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/is-it-possible-to-create-a-dynamic-role-based-on-a-static-role/m-p/1376991#M1070</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-09-24T13:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a dynamic role based on a static role ? CORA AI gave me an example, but it doesn't work</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/is-it-possible-to-create-a-dynamic-role-based-on-a-static-role/m-p/1376992#M1071</link>
      <description>&lt;P&gt;Hello Jaime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Pierryck&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 09:33:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/is-it-possible-to-create-a-dynamic-role-based-on-a-static-role/m-p/1376992#M1071</guid>
      <dc:creator>Pierryck_Dupont</dc:creator>
      <dc:date>2025-10-17T09:33:24Z</dc:date>
    </item>
  </channel>
</rss>

