This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Admin API cannot create deactivated users #12057
Labels
A-Account-Deactivation
"Deleting"/"Removing" a user, GDPR erasure (erased)
A-Admin-API
A-Docs
things relating to the documentation
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Description
When using Admin API to create new users, the
deactivated
body attribute is ignored. According to the docs, "If unspecified, deactivation state will be left unchanged on existing accounts and set to false for new accounts". It seems like it's set to false for new accounts regardless of what the attribute is set to.Steps to reproduce
It'd be fair if that option was unsupported during user creation, but the docs don't indicate that it is. It should either work as expected, or be documented (and preferably return a 400 when used) not to.
Version information
Synapse 1.51.0 running under docker with homerunner.
The text was updated successfully, but these errors were encountered: