<?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>question Update local account password via REST from Delinea secret server in ServiceNow AI Platform forum</title>
    <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/update-local-account-password-via-rest-from-delinea-secret/m-p/1180463#M136852</link>
    <description>&lt;P&gt;We need to update the password of a local ServiceNow account that is used by automation. We use this account to get an OAuth token and our Secret Server updates AD and an AAD. We would like to automate this process, but we attempted to do this via Postman and using the REST API on the sys_user table. We can see that an update is done to the user profile, but the password does not change. Any suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 16:22:42 GMT</pubDate>
    <dc:creator>Kaileb</dc:creator>
    <dc:date>2022-09-13T16:22:42Z</dc:date>
    <item>
      <title>Update local account password via REST from Delinea secret server</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/update-local-account-password-via-rest-from-delinea-secret/m-p/1180463#M136852</link>
      <description>&lt;P&gt;We need to update the password of a local ServiceNow account that is used by automation. We use this account to get an OAuth token and our Secret Server updates AD and an AAD. We would like to automate this process, but we attempted to do this via Postman and using the REST API on the sys_user table. We can see that an update is done to the user profile, but the password does not change. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 16:22:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/update-local-account-password-via-rest-from-delinea-secret/m-p/1180463#M136852</guid>
      <dc:creator>Kaileb</dc:creator>
      <dc:date>2022-09-13T16:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update local account password via REST from Delinea secret server</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/update-local-account-password-via-rest-from-delinea-secret/m-p/1180464#M136853</link>
      <description>&lt;P&gt;Hi, please share how REST request looks like, what parameters, headers, etc&amp;nbsp; are being used there&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 18:40:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/update-local-account-password-via-rest-from-delinea-secret/m-p/1180464#M136853</guid>
      <dc:creator>Appli</dc:creator>
      <dc:date>2022-09-13T18:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update local account password via REST from Delinea secret server</title>
      <link>https://www.servicenow.com/community/servicenow-ai-platform-forum/update-local-account-password-via-rest-from-delinea-secret/m-p/1180465#M136854</link>
      <description>&lt;P&gt;We used the table api on sys_user. We tried it through PowerShell. Headers were:&lt;/P&gt;
&lt;P&gt;Content-Type: application/json&lt;/P&gt;
&lt;P&gt;Authorization : Basic &amp;lt;username: password&amp;gt; (encoded)&lt;/P&gt;
&lt;P&gt;The user authorizing is the one getting the password changed. Does it need the admin role to change passwords?&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;function updatePassword($newPassword) {
    
    $uri = 'https://&amp;lt;instance&amp;gt;.service-now.com/api/now/table/sys_user/&amp;lt;user sys_id&amp;gt;?sysparm_input_display_value=true';
    $body =convertto-json -inputobject @{ "user_password" = $newPassword};

   $result = Invoke-RestMethod -Method put -uri $uri -Headers $headers

}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Sep 2022 17:18:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/servicenow-ai-platform-forum/update-local-account-password-via-rest-from-delinea-secret/m-p/1180465#M136854</guid>
      <dc:creator>Kaileb</dc:creator>
      <dc:date>2022-09-19T17:18:25Z</dc:date>
    </item>
  </channel>
</rss>

