<?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: Looking for syntax to query: gis.users.search(query=&amp;quot;???&amp;quot;) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776053#M947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A class="link-titled" href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#usermanager" title="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#usermanager"&gt;UserManager - arcgis.gis module — arcgis 1.8.0 documentation&lt;/A&gt; documentation points users to the REST API documentation for search parameters: &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class="" style="box-sizing: border-box; font: bold 16px / 1 Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; margin: -12px -12px 12px; display: block; text-rendering: auto; -webkit-font-smoothing: antialiased; color: #ffffff; background: #6ab0de; padding: 6px 12px; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Note&lt;/P&gt;&lt;P style="box-sizing: border-box; line-height: 24px; font-size: 16px; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; margin: 0px 0px 12px !important 0px;"&gt;A few things that will be helpful to know.&lt;/P&gt;&lt;OL class="" style="box-sizing: border-box; margin: 0px 0px 24px; padding: 0px; list-style: decimal; line-height: 24px; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;LI style="box-sizing: border-box; list-style: decimal; margin-left: 24px;"&gt;&lt;P style="box-sizing: border-box; line-height: 24px; margin: 0px; font-size: 16px;"&gt;The query syntax has quite a few features that can’t be adequately described here. The query syntax is available in ArcGIS help. A short version of that URL is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="http://bitly.com/1fJ8q31" style="box-sizing: border-box; color: #9b59b6; text-decoration: none; cursor: pointer;"&gt;http://bitly.com/1fJ8q31&lt;/A&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box; list-style: decimal; margin-left: 24px;"&gt;&lt;P style="box-sizing: border-box; line-height: 24px; margin: 0px; font-size: 16px;"&gt;Searching without specifying a query parameter returns a list of all users in your organization.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box; list-style: decimal; margin-left: 24px;"&gt;&lt;P style="box-sizing: border-box; line-height: 24px; margin: 0px; font-size: 16px;"&gt;Most of the time when searching users you want to search within your organization in ArcGIS Online or within your Portal. As a convenience, the method automatically appends your organization id to the query by default. If you don’t want the API to append to your query set outside_org to True. If you use this feature with an OR clause such as field=x or field=y you should put this into parenthesis when using outside_org.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your specific situation, there is no case-insensitive or wildcard search for AGOL/Portal user e-mails.&amp;nbsp; There have been, and still are, enhancement requests for such functionality, but Esri hasn't acted on them in years.&amp;nbsp; Honestly, I don't think they ever will, especially for wildcards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although you cannot do a case-insensitive user e-mail search directly, there is an interesting behavior where you can query on the user part of an e-mail address and a case insensitive search is done.&amp;nbsp; In your example, searching on "First.Last" would return &lt;A href="mailto:first.last@joe.com;"&gt;first.last@joe.com;&lt;/A&gt; however, it might return additional results as well so you might need additional filtering.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also search on company e-mail, "joe.com", since that is likely to be all lowercase, and then use Python to search for the user within that company.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2020 15:17:12 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-04-08T15:17:12Z</dc:date>
    <item>
      <title>Looking for syntax to query: gis.users.search(query="???")</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776052#M946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to search users by email. So gis.users.search(query='first.last@joe.com') works but the email query is case sensitive. So if they their user.email is &lt;A href="mailto:First.Last@joe.com"&gt;First.Last@joe.com&lt;/A&gt;&amp;nbsp;I do not find the user. Users are both internal to the organization and external.&amp;nbsp; Can anybody link a syntax guide or provide me with a recommendation.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 06:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776052#M946</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-08T06:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for syntax to query: gis.users.search(query="???")</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776053#M947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A class="link-titled" href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#usermanager" title="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#usermanager"&gt;UserManager - arcgis.gis module — arcgis 1.8.0 documentation&lt;/A&gt; documentation points users to the REST API documentation for search parameters: &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class="" style="box-sizing: border-box; font: bold 16px / 1 Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; margin: -12px -12px 12px; display: block; text-rendering: auto; -webkit-font-smoothing: antialiased; color: #ffffff; background: #6ab0de; padding: 6px 12px; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;Note&lt;/P&gt;&lt;P style="box-sizing: border-box; line-height: 24px; font-size: 16px; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; margin: 0px 0px 12px !important 0px;"&gt;A few things that will be helpful to know.&lt;/P&gt;&lt;OL class="" style="box-sizing: border-box; margin: 0px 0px 24px; padding: 0px; list-style: decimal; line-height: 24px; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;LI style="box-sizing: border-box; list-style: decimal; margin-left: 24px;"&gt;&lt;P style="box-sizing: border-box; line-height: 24px; margin: 0px; font-size: 16px;"&gt;The query syntax has quite a few features that can’t be adequately described here. The query syntax is available in ArcGIS help. A short version of that URL is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="http://bitly.com/1fJ8q31" style="box-sizing: border-box; color: #9b59b6; text-decoration: none; cursor: pointer;"&gt;http://bitly.com/1fJ8q31&lt;/A&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box; list-style: decimal; margin-left: 24px;"&gt;&lt;P style="box-sizing: border-box; line-height: 24px; margin: 0px; font-size: 16px;"&gt;Searching without specifying a query parameter returns a list of all users in your organization.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="box-sizing: border-box; list-style: decimal; margin-left: 24px;"&gt;&lt;P style="box-sizing: border-box; line-height: 24px; margin: 0px; font-size: 16px;"&gt;Most of the time when searching users you want to search within your organization in ArcGIS Online or within your Portal. As a convenience, the method automatically appends your organization id to the query by default. If you don’t want the API to append to your query set outside_org to True. If you use this feature with an OR clause such as field=x or field=y you should put this into parenthesis when using outside_org.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your specific situation, there is no case-insensitive or wildcard search for AGOL/Portal user e-mails.&amp;nbsp; There have been, and still are, enhancement requests for such functionality, but Esri hasn't acted on them in years.&amp;nbsp; Honestly, I don't think they ever will, especially for wildcards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although you cannot do a case-insensitive user e-mail search directly, there is an interesting behavior where you can query on the user part of an e-mail address and a case insensitive search is done.&amp;nbsp; In your example, searching on "First.Last" would return &lt;A href="mailto:first.last@joe.com;"&gt;first.last@joe.com;&lt;/A&gt; however, it might return additional results as well so you might need additional filtering.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also search on company e-mail, "joe.com", since that is likely to be all lowercase, and then use Python to search for the user within that company.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 15:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776053#M947</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-08T15:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for syntax to query: gis.users.search(query="???")</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776054#M948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response Joshua.&amp;nbsp; I had started off using First.Last but thought it would be best to use the full email. I will go back and use my first code. It is unfortunate that the additional functionality isn't being added.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read that note and found that 1 is very little help. The link doesn't work and finding ArcGIS help is not so easy to find...&amp;nbsp; Do you have a link for syntax query features?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404040; background-color: #f6f6f6;"&gt;1. The query syntax has quite a few features that can’t be adequately described here. The query syntax is available in ArcGIS help. A short version of that URL is&lt;/SPAN&gt;&lt;SPAN style="color: #404040; background-color: #f6f6f6; border: 0px; font-size: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fbitly.com%2F1fJ8q31" rel="nofollow" style="color: #9b59b6; background-color: #f6f6f6; border: 0px; text-decoration: none; font-size: 16px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://bitly.com/1fJ8q31&lt;/A&gt;&lt;SPAN style="color: #404040; background-color: #f6f6f6;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404040; background-color: #f6f6f6;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #3d3d3d; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 15:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776054#M948</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-08T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for syntax to query: gis.users.search(query="???")</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776055#M949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The bitly link doesn't work for you?&amp;nbsp; I just tried it again and it opens to &lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm"&gt;Search reference—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To query feature services, &lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm"&gt;Query (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 17:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/looking-for-syntax-to-query-gis-users-search-query/m-p/776055#M949</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-08T17:25:27Z</dc:date>
    </item>
  </channel>
</rss>

