<?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 Users search returns a response inconsistent with the docs in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/users-search-returns-a-response-inconsistent-with/m-p/1588148#M4951</link>
    <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/user-search-org/#response-properties" target="_self"&gt;The docs&lt;/A&gt; for &lt;SPAN&gt;&lt;FONT face="andale mono,times"&gt;/sharing/rest/portals/{portal_id}/users/search&lt;/FONT&gt; indicate that we should expect an array of&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/user/#response-properties" target="_self"&gt;user objects&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;in the response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mike (with a "Data Editor" role), querying for Shawn (profile set to be visible to the organization):&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;GET /sharing/rest/portals/{portal_id}/users/search?q=shaw
```python
{
    "total": 1,
    "start": 1,
    "num": 10,
    "nextStart": -1,
    "results": [
        {
            "username": "shawn_cc",
            "udn": None,
            "id": "880812e13f6dfg4f82d2395553a0ad8b",
            "fullName": "Shawn Lastname",
            "firstName": "Shawn",
            "lastName": "Lastname",
            "description": "Software Engineer&amp;amp;#13;https://chrono.cards",
            "tags": [],
            "culture": "en-US",
            "cultureFormat": None,
            "region": None,
            "units": None,
            "thumbnail": "blob.png",
            "access": "org",
            "created": 1596658728000,
            "modified": 1721761958000,
            "provider": None,
        }
    ],
}
```&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Fields listed in the documentation are not present (particularly email and role). One might think this is an access/security issue given the lower role. However, the same accounts involved in a similar request return email and role:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;GET /sharing/rest/portals/{portal_id}/users/?username=shawn_cc
```python
{
    "total": 1,
    "start": 1,
    "num": 10,
    "nextStart": -1,
    "users": [
        {
            "username": "shawn_cc",
            "udn": None,
            "id": "880812e13f6dfg4f82d2395553a0ad8b",
            "fullName": "Shawn Lastname",
            "categories": [],
            "emailStatus": "verified",
            "emailStatusDate": 1713454192000,
            "firstName": "Shawn",
            "lastName": "Lastname",
            "preferredView": None,
            "description": "Software Engineer&amp;amp;#13;https://chrono.cards",
            "email": "shawn.lastname@chrono.cards",
            "userType": "arcgisonly",
            "idpUsername": None,
            "favGroupId": "2a57b412c0044fcab3506fd78ec22dc9",
            "lastLogin": 1739464220000,
            "mfaEnabled": False,
            "mfaEnforcementExempt": False,
            "storageUsage": 540156,
            "storageQuota": 2199023255552,
            "orgId": "Q9ffpH9MNoz7efXP",
            "role": "org_admin",
            "level": "2",
            "userLicenseTypeId": "creatorUT",
            "disabled": False,
            "tags": [],
            "culture": "en-US",
            "cultureFormat": "us",
            "region": None,
            "units": None,
            "thumbnail": "blob.png",
            "access": "org",
            "created": 1596658728000,
            "modified": 1721761958000,
            "provider": "arcgis",
        }
    ],
}
```&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;If you promote Mike to an admin, both responses return essentially the same fields.&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If this behavior is intentional, the documentation should reflect it. Maybe I missed it somewhere?&lt;/LI&gt;&lt;LI&gt;If email/role are being omitted from the first response due to role/access, should they not also be omitted from the second response?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I can't tell if this is a documentation bug, or a response bug, or what, but the behavior is confusing. If a data editor user is allowed access to email/role, why is it not included in the first response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 19:20:56 GMT</pubDate>
    <dc:creator>MikeDavlantes</dc:creator>
    <dc:date>2025-02-21T19:20:56Z</dc:date>
    <item>
      <title>Users search returns a response inconsistent with the docs</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/users-search-returns-a-response-inconsistent-with/m-p/1588148#M4951</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/user-search-org/#response-properties" target="_self"&gt;The docs&lt;/A&gt; for &lt;SPAN&gt;&lt;FONT face="andale mono,times"&gt;/sharing/rest/portals/{portal_id}/users/search&lt;/FONT&gt; indicate that we should expect an array of&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/user/#response-properties" target="_self"&gt;user objects&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;in the response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mike (with a "Data Editor" role), querying for Shawn (profile set to be visible to the organization):&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;GET /sharing/rest/portals/{portal_id}/users/search?q=shaw
```python
{
    "total": 1,
    "start": 1,
    "num": 10,
    "nextStart": -1,
    "results": [
        {
            "username": "shawn_cc",
            "udn": None,
            "id": "880812e13f6dfg4f82d2395553a0ad8b",
            "fullName": "Shawn Lastname",
            "firstName": "Shawn",
            "lastName": "Lastname",
            "description": "Software Engineer&amp;amp;#13;https://chrono.cards",
            "tags": [],
            "culture": "en-US",
            "cultureFormat": None,
            "region": None,
            "units": None,
            "thumbnail": "blob.png",
            "access": "org",
            "created": 1596658728000,
            "modified": 1721761958000,
            "provider": None,
        }
    ],
}
```&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Fields listed in the documentation are not present (particularly email and role). One might think this is an access/security issue given the lower role. However, the same accounts involved in a similar request return email and role:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;GET /sharing/rest/portals/{portal_id}/users/?username=shawn_cc
```python
{
    "total": 1,
    "start": 1,
    "num": 10,
    "nextStart": -1,
    "users": [
        {
            "username": "shawn_cc",
            "udn": None,
            "id": "880812e13f6dfg4f82d2395553a0ad8b",
            "fullName": "Shawn Lastname",
            "categories": [],
            "emailStatus": "verified",
            "emailStatusDate": 1713454192000,
            "firstName": "Shawn",
            "lastName": "Lastname",
            "preferredView": None,
            "description": "Software Engineer&amp;amp;#13;https://chrono.cards",
            "email": "shawn.lastname@chrono.cards",
            "userType": "arcgisonly",
            "idpUsername": None,
            "favGroupId": "2a57b412c0044fcab3506fd78ec22dc9",
            "lastLogin": 1739464220000,
            "mfaEnabled": False,
            "mfaEnforcementExempt": False,
            "storageUsage": 540156,
            "storageQuota": 2199023255552,
            "orgId": "Q9ffpH9MNoz7efXP",
            "role": "org_admin",
            "level": "2",
            "userLicenseTypeId": "creatorUT",
            "disabled": False,
            "tags": [],
            "culture": "en-US",
            "cultureFormat": "us",
            "region": None,
            "units": None,
            "thumbnail": "blob.png",
            "access": "org",
            "created": 1596658728000,
            "modified": 1721761958000,
            "provider": "arcgis",
        }
    ],
}
```&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;If you promote Mike to an admin, both responses return essentially the same fields.&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If this behavior is intentional, the documentation should reflect it. Maybe I missed it somewhere?&lt;/LI&gt;&lt;LI&gt;If email/role are being omitted from the first response due to role/access, should they not also be omitted from the second response?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I can't tell if this is a documentation bug, or a response bug, or what, but the behavior is confusing. If a data editor user is allowed access to email/role, why is it not included in the first response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 19:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/users-search-returns-a-response-inconsistent-with/m-p/1588148#M4951</guid>
      <dc:creator>MikeDavlantes</dc:creator>
      <dc:date>2025-02-21T19:20:56Z</dc:date>
    </item>
  </channel>
</rss>

