I would like to create an post from my Admin API Key under a different username. The official API documentation under Discourse API Docs has no real field for that. Is it still possible somehow?
1 Like
RGJ
(Richard - Communiteq)
March 25, 2022, 10:35am
2
If you have an “all users” API key then you can set the username it should act as in the Api-Username:
header.
See the section “Authentication” on the API docs home page: https://docs.discourse.org/
4 Likes
Heliosurge
(Dan DeMontmorency)
March 25, 2022, 1:29pm
3
If your ab Admin vs just a Moderator you can use “Change Ownership” from the wrench on the post.
Iirc there is a plugin as well to post under a different name.
Here it is
Discourse Staff Alias
Discourse Staff Alias
Official staff alias plugin for Discourse.
Repo: https://github.com/discourse/discourse-staff-alias
The Discourse staff alias plugin allows you to reply, edit and create posts as an alias user.
Usage
Under admin > settings , set the staff alias username for the staff alias plugin and enable the plugin by checking staff alias enabled .
Under the composer’s actions drop down, staff users can choose to create topics or posts as the staff alias us…