<?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: getUser function Error Failed to query url in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1197664#M497</link>
    <description>&lt;P&gt;Bug can be tracked here&amp;nbsp;BUG-000151193&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 23:38:33 GMT</pubDate>
    <dc:creator>HusseinNasser2</dc:creator>
    <dc:date>2022-07-29T23:38:33Z</dc:date>
    <item>
      <title>getUser function Error Failed to query url</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1196977#M486</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Has anyone worked with the getUser Arcade Function to return the current user name and Control Editing Access?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When using the Arcade Portal() function I get the following error.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_3-1659033769279.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47082i6BDCDC6D1F864AE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JS_Esri_3-1659033769279.png" alt="JS_Esri_3-1659033769279.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;I can copy and paste that URL into the browser of the environment and access the Portal.&lt;BR /&gt;&lt;BR /&gt;Any thoughts? Below is the code, it's a very basic constraint rule copied from the video &lt;A title="https://www.youtube.com/watch?v=rq02zcs-o10" href="https://www.youtube.com/watch?v=RQ02ZCS-O10" target="_blank" rel="noreferrer noopener"&gt;here&lt;/A&gt;&lt;FONT face="inherit"&gt;&amp;nbsp;the URL and group name are the only things &lt;/FONT&gt;switched&lt;FONT face="inherit"&gt;&amp;nbsp;out.&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//if the edit is on defualt we need to check the suer group
var p =  Portal("https://[[portal name]].com/portal");
//get the user full object
var u = getUser(p);
//get the user groups
var groups = u.groups
//if the user is in the SuperEditor group allow the edit
if (Find("Default Editors",groups) &amp;gt; 0) {
     return true //allow edit
}
return false //fail edit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 18:46:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1196977#M486</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-07-28T18:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: getUser function Error Failed to query url</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1197514#M491</link>
      <description>&lt;P&gt;UPDATE:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;This is a known bug introduced in 10.9.1 and is scheduled to be fixed in a future patch.&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Jul 2022 17:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1197514#M491</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-07-29T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: getUser function Error Failed to query url</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1197664#M497</link>
      <description>&lt;P&gt;Bug can be tracked here&amp;nbsp;BUG-000151193&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 23:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1197664#M497</guid>
      <dc:creator>HusseinNasser2</dc:creator>
      <dc:date>2022-07-29T23:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: getUser function Error Failed to query url</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1197804#M500</link>
      <description>&lt;P&gt;Thank you sir!&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 21:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/getuser-function-error-failed-to-query-url/m-p/1197804#M500</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-07-31T21:54:59Z</dc:date>
    </item>
  </channel>
</rss>

