<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">I would like to use the backend API to set user permissions to avoid a couple hundred mouse clicks on the admin web forms. ( Adding users to a group seems to require you add them one at a time. It would be nicer if you could paste a list of user ids into that field and click Add just once. Or maybe put everything in a checkbox matrix so you can set several user/repo/groups/permissions at once. ) </div><div class=""><br class=""></div><div class="">I’ve tried doing a "GET /users/$ID” , pulling the permissions out of one user as a template and merging those permissions into another users json with jq, and posting again to "POST /users/$ID” . </div><div class=""><br class=""></div><div class="">The return value from that makes it appear to have updated:</div><div class=""><div style="margin: 0px; font-size: 15px; background-color: rgb(255, 238, 219);" class="">{"status":"Updated","id":13,"lock_version":3,"stale":null,"uri":"/users/13","warnings":[]}</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">But doing another GET shows nothing changed. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I’ve also tried appending <span style="font-size: 15px; background-color: rgb(255, 238, 219);" class="">?groups%5B%5D=/repositories/3/groups/15 </span>to the URL </div><div class="">( which should be "repository-basic-data-entry” group for that repo ) which also returns what</div><div class="">looks like an updated status, but again, it appears unchanged. </div><div class=""><br class=""></div><div class="">In both cases, *something* got updated, if only the modification date, because if I do the same operation a second time using the same JSON, it rejects the 2nd attempt with:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 15px; background-color: rgb(255, 238, 219);" class="">{"error":"The record you tried to update has been modified since you fetched it."}</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I haven’t yet tried posting to /repositories/$REPO/groups yet. Is that the one that works ?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Can anyone suggest a working API formula ? </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">— Steve. </div></body></html>