Back

Prevent Users from Updating Account details.

  • 0
  • Accounts
SenZi
4 Jan, 2024, 09:46

Hi, Is it possible to prevent users in one project from updating their account details via client side endpoints. For example updating their username, preferences or even their email.

Thanks

TL;DR
Is it possible to prevent users from updating their account details? Yes, it is possible to prevent users from updating their account details via client-side endpoints. One workaround suggested is to store all the data in a Collection and have a Function triggered on any user data update to reset the details to whatever is in the Collection. Is there a built-in feature for this? As of now, there is no built-in feature for preventing users from updating their account details, but implementing this feature could be a sensible addition in the future.
ideclon
5 Jan, 2024, 09:32

Not as far as I’m aware? But this does sound like a sensible feature to have.

ideclon
5 Jan, 2024, 09:33

For now, a workaround you could use would be to store all that data in a Collection, and have a Function triggered on any user data update where you reset all that to whatever’s in the Collection.

SenZi
5 Jan, 2024, 09:35

Yea, that's what i had in mind, but it would be better to have permissions in Accounts too, even if we did not add the feature in the frontend, users can use the api to make changes right.

ideclon
5 Jan, 2024, 09:40

Yes, that’s correct.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more