<?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: Download the list of users for viewing in MS Excel via API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Download-the-list-of-users-for-viewing-in-MS-Excel-via-API/m-p/192569#M8052</link>
    <description>&lt;P&gt;Note this command will only work if you have a small number of users locally defined.&lt;BR /&gt;For larger user databases, you will need to make multiple calls using the limit/offset parameters to get the next set of results returned by the API.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 16:26:40 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-09-13T16:26:40Z</dc:date>
    <item>
      <title>Download the list of users for viewing in MS Excel via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Download-the-list-of-users-for-viewing-in-MS-Excel-via-API/m-p/192480#M8050</link>
      <description>&lt;P&gt;Hello Team!&lt;/P&gt;&lt;P&gt;We had a task to upload the list of users for viewing in MS Excel via API.&lt;/P&gt;&lt;P&gt;The following form :&lt;BR /&gt;name, comment, expiration date, what groups are members of&lt;/P&gt;&lt;P&gt;It took me some time to find the right syntax, and I'd like to share it with you.&lt;/P&gt;&lt;P&gt;I'd be very happy if someone could use it.&lt;/P&gt;&lt;P&gt;For 80.40 version&amp;nbsp;It looks like this:&lt;/P&gt;&lt;P&gt;mgmt_cli&amp;nbsp; --port 4434&amp;nbsp; -r true show-users details-level full --format json | jq '.objects[] | [.name, ."comments", getpath(["expiration-date","iso-8601"]), ."groups"[].name] |@csv'&amp;nbsp; -r&lt;/P&gt;&lt;P&gt;For 81.10:&lt;/P&gt;&lt;P&gt;mgmt_cli &amp;nbsp;--port 4434&amp;nbsp; -r true show-users details-level full --format json show-membership "true" | jq '.objects[] | [.name, ."comments", getpath(["expiration-date","iso-8601"]), ."groups"[].name] |@csv'&amp;nbsp; -r&lt;/P&gt;&lt;P&gt;That's what helped me:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-users~v1.6.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-users~v1.6.1%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jqlang.github.io/jq/manual/" target="_blank"&gt;https://jqlang.github.io/jq/manual/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 07:46:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Download-the-list-of-users-for-viewing-in-MS-Excel-via-API/m-p/192480#M8050</guid>
      <dc:creator>Nadezhda</dc:creator>
      <dc:date>2023-09-13T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Download the list of users for viewing in MS Excel via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Download-the-list-of-users-for-viewing-in-MS-Excel-via-API/m-p/192569#M8052</link>
      <description>&lt;P&gt;Note this command will only work if you have a small number of users locally defined.&lt;BR /&gt;For larger user databases, you will need to make multiple calls using the limit/offset parameters to get the next set of results returned by the API.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 16:26:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Download-the-list-of-users-for-viewing-in-MS-Excel-via-API/m-p/192569#M8052</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-09-13T16:26:40Z</dc:date>
    </item>
  </channel>
</rss>

