Skip to content

Let admins add custom data to users

Alex Gleason requested to merge alexgleason/pleroma:custom-data into develop

Adds an admin_data map to the users table. The purpose of this field is for server admins to tag a user with any arbitrary data they want, and it then gets returned publicly with the user by the API.

Been wanting something like this for a while. It's useful for adding frontend-specific features that only the admin can control.

For example:

  • Show whether the user is a donor.
  • Show whether the user's identity has been verified by admins.
  • Tag users migrated from Mastodon for debugging.
  • Could easily support Misskey's "is_cat" with an MRF (just an example).

For now there's no AdminAPI endpoint. It's useful right now with scripting regardless. But it could be expanded on by adding an endpoint to manage it.

Edited by Alex Gleason

Merge request reports