
how restrict user to execute function only once or 3 times in a day.

You'll need to create some inner-logic for that. For example, you can create a collection with
- User ID,
- Number of execution
Then check if the user is reached is limit.
Then any night at midnight you can create a CRON function that will empty the collection, so it's ready for the next day.

any other way.

A more complex one would be to give any user permission upon login And, then remove it after N execution.

But this is to complex for that task.

I think the best way would be to run the function within the function.
Recommended threads
- Google OAuth2 Login Gets Stuck in Redire...
I'm facing an issue with the Google OAuth2 login flow on my Flutter Android app using the Appwrite SDK. After a successful sign-in with Google, the browser ente...
- Facebook OAuth with Appwrite Cloud fails...
I’m integrating Facebook login in my Flutter app using Appwrite Cloud. Google OAuth works fine, but I’m stuck with Facebook. Here’s what happens: When I log i...
- Issues connecting my appwrite 1.7.4
Im trying to connect my app using the app-starter but all the pings are getting an error 500, Ive tried with windows / android and web all give the same 500 err...
