<?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: Change expiration date of users using generic-object API calls in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39646#M2488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Good work Jim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2019 19:29:36 GMT</pubDate>
    <dc:creator>Kim_Moberg</dc:creator>
    <dc:date>2019-02-08T19:29:36Z</dc:date>
    <item>
      <title>Change expiration date of users using generic-object API calls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39643#M2485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 30px;"&gt;This document explains the steps to change expiration date of users defined in the R80.x Check Point Security Management Server using the generic-object API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="warning" __jive_macro_name="alert" alert="warning" class="jive_text_macro jive_macro_alert"&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;Disclaimer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;These APIs provide direct access to different objects and fields in the database. As a result if an objects schema change, scripts that relied on specific schema fields may break.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the generic-object(s) API calls have direct access to change different objects and fields in the database, they do not always provide data validation to ensure that the data added to the fields are following required format for this field. Therefore you have to ensure that the script or 3rd party system you are using to integrate with the management server is doing appropriate data validation before sending the API call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you have the option, always prefer to use the documented API calls and not the generic API calls as&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;They are doing data validation&lt;/LI&gt;&lt;LI&gt;They are documented&lt;/LI&gt;&lt;LI&gt;They are future compatible&lt;/LI&gt;&lt;LI&gt;They are tested&lt;/LI&gt;&lt;LI&gt;They are supported by Technical Assistance Center (TAC)&lt;/LI&gt;&lt;/UL&gt;&lt;/PRE&gt;&lt;H2&gt;Data flow&lt;/H2&gt;&lt;P&gt;The data flow for the generic API calls are the same as when using the documented API&lt;BR /&gt; (Login) &amp;gt; (Show) &amp;gt; (Change) &amp;nbsp;&amp;gt; (Publish) &amp;gt; (Logout)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Login to session&lt;BR /&gt; &lt;SPAN style="font-size: 10.5pt; color: #0a508b; background: white;"&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api/login&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Show properties and get UID of object you want to change &lt;BR /&gt; &lt;SPAN style="font-size: 10.5pt; color: #0a508b; background: white;"&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api/show-generic-objects&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Change Expiration date and verify new values&lt;BR /&gt; &lt;SPAN style="font-size: 10.5pt; color: #0a508b; background: white;"&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api/set-generic-object&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Publish changes&lt;BR /&gt; &lt;SPAN style="font-size: 10.5pt; color: #0a508b; background: white;"&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api/publish&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Logout&lt;BR /&gt; &lt;SPAN style="font-size: 10.5pt; color: #0a508b; background: white;"&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api/logout&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="font-size: 22px;"&gt;Format of the API calls&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;Please refer to the Security Management API reference guide if you need information about the &lt;STRONG&gt;login&lt;/STRONG&gt;, &lt;STRONG&gt;publish&lt;/STRONG&gt; and &lt;STRONG&gt;logout&lt;/STRONG&gt; API calls. &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction~v1.1"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#introduction~v1.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The following text is describing the formatting of the generic-objects API calls used to change user expiration date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Request - 2&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Show properties and get UID of object you want to change&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;mgmt_cli tool:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# mgmt_cli -r true -d "SMC User" -f json show generic-objects name "vpnuser" details-level "full"‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Web Sevices:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE style="border: none;" width="671"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;HTTP POST&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api//show-generic-objects&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;Headers&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;Content-Type: application/json&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;X-chkp-sid: &amp;lt;The SID retrieved from the Login command&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;Body&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;{&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp; "name" : "vpnuser",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp; "details-level" : "full"&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&lt;STRONG&gt;Response - &lt;/STRONG&gt;In the response you might see multiple objects with the same name. You need to retrieve the UID of the object with "_original_type": "CpmiUser" and check the value of “expirationDate”&lt;/P&gt;&lt;TABLE style="border: none;" width="671"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;Response Body&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;{….&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "adminExpirationBaseData": {&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "objId": "f871998d-8e2f-4108-b4af-35a144642897",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "checkPointObjId": null,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "domainId": "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "expirationDateVisualNotif": true,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"expirationDate": "25-Apr-2018",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "expirationDateMethod": "EXPIRE_AT",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "folderPath": "1edb57e2-37f3-468f-b613-4a2bcf4e5315",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "text": null,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "folder": "1edb57e2-37f3-468f-b613-4a2bcf4e5315",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "is_owned": false,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ownedName": "vpnuser"&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "days": 127,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "email": "vpnuser@test.local",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "authMethod": "INTERNAL_PASSWORD",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "tohour": "23:59",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "administrator": false,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"uid": "9f55210f-64a5-4cc7-9725-4882c7571c5f&lt;/STRONG&gt; &lt;STRONG&gt;",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;……&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"_original_type": "CpmiUser"&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;…….}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Request -&lt;/STRONG&gt; &lt;STRONG&gt;3&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Change Expiration date&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;mgmt_cli tool:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In order to change the users expiration date you will need to provide the CpmiUser object uid. Expiration date needs to be written in date format "dd-mmm-yyyy" for example 10-Apr-2018.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# mgmt_cli -r true -d "SMC User" -f json set generic-object uid&amp;nbsp;"9f55210f-64a5-4cc7-9725-4882c7571c5f" .adminExpirationBaseData.expirationDate "10-Apr-2018"‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the CLI you can assign the object to a variable and in the next command call that variable. In the CLI you are also able to use the command "date" for example "&lt;SPAN&gt;date --date 2018-04-10 +%d-%b-%Y&lt;/SPAN&gt;" to ensure that correct date format is used. The following commands will create the the variables "&lt;SPAN&gt;$varUid" "$varDate" and change the exparation date of the user using these variables&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# varUid=$(mgmt_cli -r true -d "SMC User" -f json show generic-objects name "vpnuser" details-level "full" | /opt/CPshrd-R80/jq/jq -r '.objects[] | select (.["_original_type"] | contains ("CpmiUser")) | .uid')&lt;BR /&gt;#&amp;nbsp;varDate=$(date --date 2018-04-10 +%d-%b-%Y)&lt;BR /&gt;# mgmt_cli -r true -d "SMC User" -f json set generic-object uid "$varUid" .adminExpirationBaseData.expirationDate "$varDate"‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Web Sevices:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE style="border: none;" width="671"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;HTTP POST&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;&lt;A class="jive-link-external-small" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api//set-generic-object&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;Headers&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;Content-Type: application/json&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;X-chkp-sid: &amp;lt;The SID retrieved from the Login command&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;Body&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "uid":"&lt;STRONG&gt;9f55210f-64a5-4cc7-9725-4882c7571c5f&lt;/STRONG&gt;",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "adminExpirationBaseData":{&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "expirationDate":"&lt;STRONG&gt;10-Apr-2018&lt;/STRONG&gt;"&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response – &lt;/STRONG&gt;will show you the object properties with the new expiration date&lt;/P&gt;&lt;TABLE style="border: none;" width="671"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-left: 0cm;"&gt;Response Body&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="527"&gt;&lt;P style="margin-left: 0cm;"&gt;{….&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "adminExpirationBaseData": {&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "objId": "f871998d-8e2f-4108-b4af-35a144642897",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "checkPointObjId": null,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "domainId": "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "expirationDateVisualNotif": true,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;"expirationDate": "10-Apr-2018",&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "expirationDateMethod": "EXPIRE_AT",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "folderPath": "1edb57e2-37f3-468f-b613-4a2bcf4e5315",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "text": null,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "folder": "1edb57e2-37f3-468f-b613-4a2bcf4e5315",&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "is_owned": false,&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ownedName": "vpnuser"&lt;/P&gt;&lt;P style="margin-left: 0cm;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },………&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 08:27:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39643#M2485</guid>
      <dc:creator>Jim_Oqvist</dc:creator>
      <dc:date>2018-04-09T08:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change expiration date of users using generic-object API calls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39644#M2486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent work, Jim!&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 08:46:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39644#M2486</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-04-09T08:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change expiration date of users using generic-object API calls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39645#M2487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;best&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 19:54:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39645#M2487</guid>
      <dc:creator>Tomer_Sole</dc:creator>
      <dc:date>2018-04-09T19:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change expiration date of users using generic-object API calls</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39646#M2488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Good work Jim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 19:29:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Change-expiration-date-of-users-using-generic-object-API-calls/m-p/39646#M2488</guid>
      <dc:creator>Kim_Moberg</dc:creator>
      <dc:date>2019-02-08T19:29:36Z</dc:date>
    </item>
  </channel>
</rss>

