I am using a customized nodebb-plugin-sso-oauth plugin. After login, the user is created initially and the users id on my oauth identity server is saved in a custom field (
My OAuth identity server offers a concept of changing your username. So I built some code that calls the
api/v2/users endpoint of the write plugin. However, to write the correct thing I need to lookup the nodebb userid with my external id /
It seems like the nodebb web api has no feature to search for users by custom fields. Am I right? Is there a plugin that offers this? Or what plugin could be taken as reference to implement this on my own?