<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<pre><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Is the Update User functionality supported in 5.2?</div></pre>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Documentation for 5.2 says:</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px 40px 24px 80px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt;">
<span style="color: rgb(0, 0, 0); font-weight: 700;">6.1.13.5. Update User</span><span style="color: rgb(155, 89, 182);"><a href="https://bugzilla.readthedocs.io/en/5.2/api/core/v1/user.html#update-user" id="OWA70557c29-37e4-7f83-5f9f-441e4d6147b4" class="headerlink OWAAutoLink" title="Permalink to this heading" style="color: rgb(155, 89, 182); display: inline-block; margin-left: 0.5em;"></a></span></div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: 24px; margin: 0px 40px 24px 80px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Updates an existing user account in Bugzilla. You must be authenticated and be in the
<i>editusers</i>group to perform this action.</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: 24px; margin: 0px 40px 24px 80px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 700;">Request</span></div>
<div style="margin: 1px 40px 24px; border-width: 1px; border-style: solid; border-color: rgb(225, 228, 229);">
<pre style="margin: 0px; padding: 12px; display: block;"><div class="elementToProof" style="text-align: left; line-height: 1.4; white-space: normal; margin-left: 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">PUT /rest/user/(id_or_name)
</div></pre>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: 24px; margin: 0px 40px 24px 80px; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;">You can edit a single user by passing the ID or login name of the user in the URL. To edit more than one user, you can specify addition IDs or login names
 using the </span><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;"><code style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;">ids</code></span><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;"> or
</span><span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;"><code style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace;">names</code></span><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif;"> parameters
 respectively.</span></div>
<div style="margin-right: 40px; margin-bottom: 24px; margin-left: 40px; max-width: 100%;">
<table class="elementToProof" style="text-align: left; text-indent: 0px; border-width: 1px; border-style: solid; border-color: rgb(225, 228, 229); margin-bottom: 24px; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<th style="width: 117.578px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-width: 1px; border-style: solid; border-color: rgb(225, 228, 229); padding: 8px 16px; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 700;">name</span></div>
</th>
<th style="width: 74.5881px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-width: 1px; border-style: solid; border-color: rgb(225, 228, 229); padding: 8px 16px; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 700;">type</span></div>
</th>
<th style="width: 389.29px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-width: 1px; border-style: solid; border-color: rgb(225, 228, 229); padding: 8px 16px; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 700;">description</span></div>
</th>
</tr>
<tr>
<td style="width: 117.578px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); background-color: rgb(243, 246, 246); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 700;">id_or_name</span></div>
</td>
<td style="width: 74.5881px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); background-color: rgb(243, 246, 246); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
mixed</div>
</td>
<td style="width: 389.29px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); background-color: rgb(243, 246, 246); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Either the ID or the login name of the user to update.</div>
</td>
</tr>
<tr>
<td style="width: 117.578px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 700;">ids</span></div>
</td>
<td style="width: 74.5881px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
array</div>
</td>
<td style="width: 389.29px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Additional IDs of users to update.</div>
</td>
</tr>
<tr>
<td style="width: 117.578px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); background-color: rgb(243, 246, 246); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 700;">names</span></div>
</td>
<td style="width: 74.5881px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); background-color: rgb(243, 246, 246); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
array</div>
</td>
<td style="width: 389.29px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); background-color: rgb(243, 246, 246); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Additional login names of users to update.</div>
</td>
</tr>
<tr>
<td style="width: 117.578px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
full_name</div>
</td>
<td style="width: 74.5881px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
string</div>
</td>
<td style="width: 389.29px; height: 32.9048px; text-align: left; text-indent: 0px; white-space: nowrap; border-bottom: 1px solid rgb(225, 228, 229); border-left: 1px solid rgb(225, 228, 229); padding: 8px 16px; vertical-align: middle; box-sizing: border-box;">
<div style="text-align: left; text-indent: 0px; line-height: 1rem; white-space: nowrap; margin: 0px 0px 0px 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The new name of the user.</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
===============</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0);">
<span style="font-size: 14pt;"><b>However,</b></span><span style="font-size: 12pt;"> when I try to make a change to user/3  in my test server, the response is an error as shown below:</span></div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px 40px; font-family: "Aptos Mono", Aptos_EmbeddedFont, Aptos_MSFontService, monospace; font-size: 10pt; color: rgb(0, 0, 0);">
 % curl -X PUT "http://localhost/bugzilla/rest.cgi/user/3?api_key=sHpZTMcOL5qZIo4DTW3Ry4jgShbnFpq7iEriuc4n"  -d '{"<b>full_name</b>": "New Real Name"}'</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px 40px; font-family: "Aptos Mono", Aptos_EmbeddedFont, Aptos_MSFontService, monospace; font-size: 10pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="text-align: left; text-indent: 0px; line-height: normal; margin: 0px 40px; font-family: "Aptos Mono", Aptos_EmbeddedFont, Aptos_MSFontService, monospace; font-size: 10pt; color: rgb(0, 0, 0);">
{"message":"<b>The requested method 'Bugzilla::User::set_keywords' was not found</b>.","error":true,"documentation":"https://bugzilla.readthedocs.org/en/5.0/api/","code":67399}<b>%</b> </div>
<div class="elementToProof" style="margin-right: 40px; margin-left: 40px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Also, the error message refers to 5.0 documentation but the API  /rest/version says it's 5.2+</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
 https://bugzilla.XXXX/rest/version  responds with:</div>
<pre><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">{
   "<b>version" : "5.2+</b>"
}</div><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">The api_key is for an admin user who is in the editusers group but it's just not working.</div><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">I thought that perhaps I could delete the user in mysql and recreate it with the change but I would be afraid that the user id for the new user would be incorrect and it could wreak havoc with anything that refers to the "old" user id.</div><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Can you suggest a workaround?  Do I need to enable something for Update User to work?</div><div class="elementToProof" style="text-align: left; text-indent: 0px; white-space: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br></div></pre>
</body>
</html>