<?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 API Call show-users limit error in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236336#M8899</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm using the Management API from Checkpoint to return me all users with a valid certificate.&lt;/P&gt;&lt;P&gt;I'm using the management api v2&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#web/show-users~v2%20" target="_blank" rel="noopener"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;and based on the description the default limit is set to 50 but can be expanded to 500. When I expand it to 300 I receive the error:&amp;nbsp;&lt;FONT color="#FF9900"&gt;Expecting value: line 1 column 1 (char 0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I narrowed the error down to the api call wich indicates for me, that checkpoint is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe some has run in the same issue as well?&lt;/P&gt;&lt;P&gt;this is the Request:&lt;/P&gt;&lt;PRE&gt;POST {{server}}/show-users
Content-Type: application/json
X-chkp-sid: {{session}}

{
  "details-level" : "full",&lt;BR /&gt;  "show-certificates":"true",&lt;BR /&gt;  "limit":"450
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2024 12:31:01 GMT</pubDate>
    <dc:creator>kektuto</dc:creator>
    <dc:date>2024-12-19T12:31:01Z</dc:date>
    <item>
      <title>API Call show-users limit error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236336#M8899</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm using the Management API from Checkpoint to return me all users with a valid certificate.&lt;/P&gt;&lt;P&gt;I'm using the management api v2&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#web/show-users~v2%20" target="_blank" rel="noopener"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;and based on the description the default limit is set to 50 but can be expanded to 500. When I expand it to 300 I receive the error:&amp;nbsp;&lt;FONT color="#FF9900"&gt;Expecting value: line 1 column 1 (char 0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I narrowed the error down to the api call wich indicates for me, that checkpoint is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe some has run in the same issue as well?&lt;/P&gt;&lt;P&gt;this is the Request:&lt;/P&gt;&lt;PRE&gt;POST {{server}}/show-users
Content-Type: application/json
X-chkp-sid: {{session}}

{
  "details-level" : "full",&lt;BR /&gt;  "show-certificates":"true",&lt;BR /&gt;  "limit":"450
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 12:31:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236336#M8899</guid>
      <dc:creator>kektuto</dc:creator>
      <dc:date>2024-12-19T12:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: API Call show-users limit error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236403#M8900</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Did it work for you with SSH? Try this: "mgmt_cli show users limit 500 -r true show-certificates true details-level full"&lt;/P&gt;
&lt;P&gt;Weird error. Maybe some character got added somehow? If the command I sent you works I would try to download API collection from here:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R82/m-p/230257#M8805" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/postman-collection-R82/m-p/230257#M8805&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Working with collection might decrease syntax issues if this is the case.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 17:27:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236403#M8900</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2024-12-19T17:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: API Call show-users limit error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236406#M8901</link>
      <description>&lt;P&gt;I just raun command&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37178"&gt;@Amir_Senn&lt;/a&gt;&amp;nbsp;provided in my lab mgmt and appears worked fine, see below.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;[Expert@CP-MANAGEMENT:0]# mgmt_cli show users limit 500 -r true show-certificates true details-level full&lt;BR /&gt;objects:&lt;BR /&gt;- uid: "1e73730c-4cc0-4c5a-aef7-e2d40ecea781"&lt;BR /&gt;name: "andy"&lt;BR /&gt;type: "user"&lt;BR /&gt;domain:&lt;BR /&gt;uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt;name: "SMC User"&lt;BR /&gt;domain-type: "domain"&lt;BR /&gt;certificates: []&lt;BR /&gt;expiration-date:&lt;BR /&gt;iso-8601: "2030-12-31T00:00-0500"&lt;BR /&gt;posix: 1924923600000&lt;BR /&gt;authentication-method: "check point password"&lt;BR /&gt;allowed-locations:&lt;BR /&gt;sources:&lt;BR /&gt;- "97aeb369-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt;destinations:&lt;BR /&gt;- "97aeb369-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt;encryption:&lt;BR /&gt;ike: true&lt;BR /&gt;shared-secret: false&lt;BR /&gt;public-key: true&lt;BR /&gt;from-hour: "00:00"&lt;BR /&gt;to-hour: "23:59"&lt;BR /&gt;connect-on-days:&lt;BR /&gt;- "Sunday"&lt;BR /&gt;- "Monday"&lt;BR /&gt;- "Tuesday"&lt;BR /&gt;- "Wednesday"&lt;BR /&gt;- "Thursday"&lt;BR /&gt;- "Friday"&lt;BR /&gt;- "Saturday"&lt;BR /&gt;connect-daily: true&lt;BR /&gt;comments: ""&lt;BR /&gt;color: "brown"&lt;BR /&gt;icon: "Objects/user"&lt;BR /&gt;tags: []&lt;BR /&gt;meta-info:&lt;BR /&gt;lock: "unlocked"&lt;BR /&gt;validation-state: "ok"&lt;BR /&gt;last-modify-time:&lt;BR /&gt;posix: 1731509298991&lt;BR /&gt;iso-8601: "2024-11-13T09:48-0500"&lt;BR /&gt;last-modifier: "admin"&lt;BR /&gt;creation-time:&lt;BR /&gt;posix: 1720143726113&lt;BR /&gt;iso-8601: "2024-07-04T21:42-0400"&lt;BR /&gt;creator: "admin"&lt;BR /&gt;read-only: false&lt;BR /&gt;available-actions:&lt;BR /&gt;edit: "true"&lt;BR /&gt;delete: "true"&lt;BR /&gt;clone: "true"&lt;BR /&gt;- uid: "2dce6a02-9d49-42a8-a9cb-2967e8aca93c"&lt;BR /&gt;name: "testuser"&lt;BR /&gt;type: "user"&lt;BR /&gt;domain:&lt;BR /&gt;uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt;name: "SMC User"&lt;BR /&gt;domain-type: "domain"&lt;BR /&gt;certificates: []&lt;BR /&gt;expiration-date:&lt;BR /&gt;iso-8601: "2030-12-31T00:00-0500"&lt;BR /&gt;posix: 1924923600000&lt;BR /&gt;authentication-method: "check point password"&lt;BR /&gt;allowed-locations:&lt;BR /&gt;sources:&lt;BR /&gt;- "97aeb369-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt;destinations:&lt;BR /&gt;- "97aeb369-9aea-11d5-bd16-0090272ccb30"&lt;BR /&gt;encryption:&lt;BR /&gt;ike: true&lt;BR /&gt;shared-secret: false&lt;BR /&gt;public-key: true&lt;BR /&gt;from-hour: "00:00"&lt;BR /&gt;to-hour: "23:59"&lt;BR /&gt;connect-on-days:&lt;BR /&gt;- "Sunday"&lt;BR /&gt;- "Monday"&lt;BR /&gt;- "Tuesday"&lt;BR /&gt;- "Wednesday"&lt;BR /&gt;- "Thursday"&lt;BR /&gt;- "Friday"&lt;BR /&gt;- "Saturday"&lt;BR /&gt;connect-daily: true&lt;BR /&gt;comments: ""&lt;BR /&gt;color: "violet red"&lt;BR /&gt;icon: "Objects/user"&lt;BR /&gt;tags: []&lt;BR /&gt;meta-info:&lt;BR /&gt;lock: "unlocked"&lt;BR /&gt;validation-state: "ok"&lt;BR /&gt;last-modify-time:&lt;BR /&gt;posix: 1731509304504&lt;BR /&gt;iso-8601: "2024-11-13T09:48-0500"&lt;BR /&gt;last-modifier: "admin"&lt;BR /&gt;creation-time:&lt;BR /&gt;posix: 1725112471536&lt;BR /&gt;iso-8601: "2024-08-31T09:54-0400"&lt;BR /&gt;creator: "admin"&lt;BR /&gt;read-only: false&lt;BR /&gt;available-actions:&lt;BR /&gt;edit: "true"&lt;BR /&gt;delete: "true"&lt;BR /&gt;clone: "true"&lt;BR /&gt;from: 1&lt;BR /&gt;to: 2&lt;BR /&gt;total: 2&lt;/P&gt;
&lt;P&gt;[Expert@CP-MANAGEMENT:0]#&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 17:57:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236406#M8901</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-12-19T17:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: API Call show-users limit error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236434#M8902</link>
      <description>&lt;P&gt;If you're doing this with full details and certificates, it's entirely possible the API server is running out of memory trying to fulfill your request, thus the strange error.&lt;BR /&gt;Recommend using a smaller limit and using multiple calls with the offset parameter in an iterative fashion to get all the results.&lt;BR /&gt;I suspect, if you report this issue to TAC, they will make a similar suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 20:55:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236434#M8902</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-12-19T20:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: API Call show-users limit error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236572#M8905</link>
      <description>&lt;P&gt;To resolve the "show-users limit error" in your API call &lt;STRONG&gt;use Pagination&lt;/STRONG&gt;: If you need to retrieve more results than the maximum limit allows, implement pagination. Use the "offset" parameter to manage the starting point of your results and make multiple API calls to gather all the data you need.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2024 19:28:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Call-show-users-limit-error/m-p/236572#M8905</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2024-12-21T19:28:40Z</dc:date>
    </item>
  </channel>
</rss>

