This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Dedicated admin API to create new users (and not update existing users) #8165
Labels
A-Admin-API
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Description:
i have a little application which can create new users on homeservers. it talks to the homeserver through the admin rest api and therefore requires a valid admin user.
now i noticed that those PUT requests are not only creating but also updating existing users.
https://restfulapi.net/rest-put-vs-post/
At the moment, only the second part is supported by matrix synapse:
https://github.com/matrix-org/synapse/blob/master/docs/admin_api/user_admin_api.rst#create-or-modify-account
So i have to check if the user already exists and then create it. Its just a small thing but i would really appreciate it, if there is some kind of:
with a body like:
which returns an Error when the user which should be created already exists.
I guess that is very common in the web that an exception is thrown when a user already exists instead of (accidentally) updating the password... thats what happened to my little project. Lucky me it is only in testing yet :)
The text was updated successfully, but these errors were encountered: