<?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 Re: OIDC SetClaim Array value. in Workforce Identity Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/oidc-setclaim-array-value/m-p/1411708#M2048</link>
    <description>&lt;P&gt;Hi @Chris Kubiak​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if your OIDC app accepts a single string, then use filteredArray.join(',') and if your OIDC app accepts arrays, try setClaimArray('Role', filteredArray).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see if it’s possible to convert the Array to a simple string. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2025 00:33:34 GMT</pubDate>
    <dc:creator>M.Vora780263</dc:creator>
    <dc:date>2025-02-15T00:33:34Z</dc:date>
    <item>
      <title>OIDC SetClaim Array value.</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/oidc-setclaim-array-value/m-p/1411707#M2047</link>
      <description>&lt;P&gt;Trying to add a new claim to a OIDC application that contains a filtered list of the groups a user is a member of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;setClaim('Role', LoginUser.GroupNames);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works fine to supply ALL the groups the member of but when I try some filtering and setting the claim to the filtered subset I get an error.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: (This logic does appear to work on a SAML app using the setAttributeArray function in the SAML Response section)&lt;/P&gt;&lt;P&gt;var filteredArray = [];&lt;/P&gt;&lt;P&gt;var RawGroupNames = LoginUser.GroupNames;&lt;/P&gt;&lt;P&gt;for(var i=0; i &amp;lt; RawGroupNames.Length; i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;	if(RawGroupNames[i].indexOf("XYZ") &amp;gt;= 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;filteredArray.push(RawGroupNames[i]);&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;setClaim('Role', filteredArray);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The setClaim step generates a "Self referencing loop detected for property 'Owner' with type 'Jint.Native.JsObject'. Path 'Role[0].Value.Owner[0].Value'." error when using the Test button.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips\suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 15:39:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/oidc-setclaim-array-value/m-p/1411707#M2047</guid>
      <dc:creator>CKubiak</dc:creator>
      <dc:date>2025-02-14T15:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: OIDC SetClaim Array value.</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/oidc-setclaim-array-value/m-p/1411708#M2048</link>
      <description>&lt;P&gt;Hi @Chris Kubiak​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check if your OIDC app accepts a single string, then use filteredArray.join(',') and if your OIDC app accepts arrays, try setClaimArray('Role', filteredArray).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see if it’s possible to convert the Array to a simple string. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 00:33:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/oidc-setclaim-array-value/m-p/1411708#M2048</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2025-02-15T00:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: OIDC SetClaim Array value.</title>
      <link>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/oidc-setclaim-array-value/m-p/1411709#M2049</link>
      <description>&lt;P&gt;setClaimArray did the trick, that function isn't in the default script comments in the OIDC app nor in any of the docs pages I was looking up.  Got too focused on the normal setClaim('Role', LoginUser.GroupNames); being able to return an array I got blind.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 12:26:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/workforce-identity-discussions/oidc-setclaim-array-value/m-p/1411709#M2049</guid>
      <dc:creator>CKubiak</dc:creator>
      <dc:date>2025-02-17T12:26:43Z</dc:date>
    </item>
  </channel>
</rss>

