Is there any possibility to change another account password via the websdk?
I want to have the possibility to change authenticated user passwords on my admin panel, how can i do that?
There isn't any direct way as it can be a serious security problem
But, this could be the way to achieve it.
Create a function that will do so using the user server sdk with API token https://appwrite.io/docs/server/users?sdk=nodejs-default#usersUpdatePassword
And when the function is being call you can check the user be examine the APPWRITE_FUNCTION_USER_ID variable
https://appwrite.io/docs/functions#functionVariables
And then just check if the user has a specific role or team
Write your Admin panel with the Node SDK
Or
Write Appwrite functions that can ONLY be executed by permissions for Admin users or like, an admin team.
Thanks for the different approaches, im going to implement it
Hi @ianmont , if any more help is not required here, can you mark this post as [SOLVED]?
sure
[SOLVED] Question about Accounts
Recommended threads
- Upgrade Issue
Am having issue upgrading my appwrite account to pro as my card number is 19 and the required input is 16 digit
- createEmailPasswordSession Error using S...
Did someone succeed using SSR approach for login?
- [Solved] how to get user prefs from serv...
i want to get a specific users preferences from serverside maybe i missunderstood something