<?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: Changing a smartconsole user password with an API call in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245354#M9000</link>
    <description>&lt;P&gt;I guess your API session expired without publishing the changes. Maybe you can revert the changes back and do it again with a publish. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 12:11:51 GMT</pubDate>
    <dc:creator>Daniel_Kuhl1</dc:creator>
    <dc:date>2025-04-01T12:11:51Z</dc:date>
    <item>
      <title>Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245328#M8991</link>
      <description>&lt;P&gt;Hello all, I want to change a smartconsole user password via the API, in the docs there is set-user, but the users it refers to are the users in the Users object and the smartconsole users. Does anyone know if there is something else?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 09:19:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245328#M8991</guid>
      <dc:creator>bob111</dc:creator>
      <dc:date>2025-04-01T09:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245330#M8992</link>
      <description>&lt;P&gt;Hi Bob,&lt;/P&gt;
&lt;P&gt;Try using "set administrator"&lt;/P&gt;
&lt;P&gt;You can follow reference using in this link:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-administrator~v2%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-administrator~v2%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 09:28:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245330#M8992</guid>
      <dc:creator>Amir_Senn</dc:creator>
      <dc:date>2025-04-01T09:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245331#M8993</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;BR /&gt;But this is a command executed in the cli no? Can it be done with an http request?&lt;BR /&gt;Also when I tried this command it gave me that it can only work on domains of type MDS. we do not use domains, can we still use the command?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 09:41:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245331#M8993</guid>
      <dc:creator>bob111</dc:creator>
      <dc:date>2025-04-01T09:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245332#M8994</link>
      <description>&lt;P&gt;All Management API commands have several options:&lt;/P&gt;
&lt;P&gt;mgmt_cli tool&lt;BR /&gt;Web Services&lt;BR /&gt;SmartConsole CLI&lt;BR /&gt;Gaia CLI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/set-administrator~v2%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/set-administrator~v2%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It can also be used in MDS - there are examples at the bottom of the page&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 09:49:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245332#M8994</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2025-04-01T09:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245333#M8995</link>
      <description>&lt;P&gt;I get the error: This command can work only on domains of type MDS. Cannot execute it in current domain (current domain type is Domain)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 10:00:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245333#M8995</guid>
      <dc:creator>bob111</dc:creator>
      <dc:date>2025-04-01T10:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245340#M8996</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/85840"&gt;@bob111&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;to be honest it's a little bit confusing, but the documentation says: "&lt;SPAN&gt;This command is available only after logging in to the System Data domain."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So you need to use the "login-to-domain" API call to gather the session-id even if you have a SMS:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --location 'https://&amp;lt;your-server&amp;gt;/web_api/login' \
--header 'Content-Type: application/json' \
--data '{
  "user" : "&amp;lt;your-username&amp;gt;",
  "password" : "&amp;lt;your-password&amp;gt;",
  "domain" : "System Data"
}'&lt;/LI-CODE&gt;
&lt;P&gt;...and then "set-administrator" to change the password:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --location 'https://&amp;lt;your-server&amp;gt;/web_api/set-administrator' \
--header 'Content-Type: application/json' \
--header 'X-chkp-sid: &amp;lt;your-session-id&amp;gt;' \
--data '{
  "name" : "&amp;lt;your-username&amp;gt;",
  "password" : "&amp;lt;new-password&amp;gt;"
}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;That worked for me. Let us know if it worked for you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 10:44:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245340#M8996</guid>
      <dc:creator>Daniel_Kuhl1</dc:creator>
      <dc:date>2025-04-01T10:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245347#M8998</link>
      <description>&lt;P&gt;Thank you very much! It worked! I did not notice that you need to specify the domain on the login:)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 11:21:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245347#M8998</guid>
      <dc:creator>bob111</dc:creator>
      <dc:date>2025-04-01T11:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245350#M8999</link>
      <description>&lt;P&gt;I tried doing set-administrator without publishing by accident and I did not get an error but it locked the user I was trying to edit so I tried just publishing and it tells me that it cannot do it because other sessions are in progress and when I log in to the smartconsole I do not see any other sessions, do you why is that?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 11:58:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245350#M8999</guid>
      <dc:creator>bob111</dc:creator>
      <dc:date>2025-04-01T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245354#M9000</link>
      <description>&lt;P&gt;I guess your API session expired without publishing the changes. Maybe you can revert the changes back and do it again with a publish. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 12:11:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/245354#M9000</guid>
      <dc:creator>Daniel_Kuhl1</dc:creator>
      <dc:date>2025-04-01T12:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246032#M9012</link>
      <description>&lt;P&gt;Is there to specify a domain when installing the policy after doing this change? because I did what you said and set-adminstrator command worked but when I try to publish and install the changes it says that it cannot find my policy, I assume this is because I am logged in to the System Data domain. How did you install the changes?&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 08:44:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246032#M9012</guid>
      <dc:creator>bob111</dc:creator>
      <dc:date>2025-04-09T08:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246034#M9013</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/85840"&gt;@bob111&lt;/a&gt;,&amp;nbsp;I haven't tested it but it should be fine to publish the changes to the management using your session ID. No policy install needed, just publish the changes and test if you can login to the Smart Console using the new password.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 09:23:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246034#M9013</guid>
      <dc:creator>Daniel_Kuhl1</dc:creator>
      <dc:date>2025-04-09T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246041#M9014</link>
      <description>&lt;P&gt;Thank you very much&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 11:20:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246041#M9014</guid>
      <dc:creator>bob111</dc:creator>
      <dc:date>2025-04-09T11:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a smartconsole user password with an API call</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246044#M9015</link>
      <description>&lt;P&gt;You're welcome. This is the place to ask and get help.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 11:35:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-a-smartconsole-user-password-with-an-API-call/m-p/246044#M9015</guid>
      <dc:creator>Daniel_Kuhl1</dc:creator>
      <dc:date>2025-04-09T11:35:39Z</dc:date>
    </item>
  </channel>
</rss>

