I was troubled.
What is the best way to give user permissions to each table.
And I was able to do it with a very simple procedure.
How to achieve this
- Create the user table and table name table.
- Create the table CRUD setting table. 3.
- table CRUD setting table has only table_name(Ref), user_id(Ref), crud_setting(Enum: READ_ONLY etcβ¦) columns only.
οΌ. Register the data. Since there are so many table names, it is better to write them directly in the spreadsheet at first.
- Finally, go to data-> tables and set the following functions to βAre updates allowed?β in each table.
LOOKUP(CONCATENATE({tableName},": ",USEREMAIL()),"table_crud_settings","id","crud_setting")
This is the image on AppSheet.
You can immediately change the userβs permissions by changing crud_setting.
For a more user-friendly view, you can create YES/NO for Add, Delete, Update, and set the CRUD statement as a condition to make it easier to use.
Thanks for reading.
Have a good AppSheet life!