How to add a admin screen or tab in which only he can edit and delete data of his customers
To create an admin panel in Glide, you can use the āwriteā permission in the sheet that your app is using to store data. This allows you to create a separate sheet or tab in the sheet that only you or other designated users can access and edit, while the rest of your appās users can only view the data. You can also use the āifā function in Glideās formula language to control what users can see and do in different parts of your app.
Additionally, you could consider using the āUser Rolesā feature, where you can set different permission levels for different users or groups of users. You can use this feature to create an āadminā role and assign it to specific users, giving them access to certain parts of the app that are hidden from other users.
-
Add a āroleā column in your User Profiles table. This doesnāt necessarily have to work with the āRolesā setup Hassan mentioned above. This applies if you donāt want people downloading customer data that doesnāt belong to them, and in that case you would want to use another column as the āRoleā (either rowID or companyID).
-
Give the āAdminā value to appropriate users.
-
Create an āAdminā tab and set the visibility to āSigned-in userās āroleā = Adminā.
-
Add an inline list/collection of customers to that tab. Apply appropriate relations/filters where needed.
-
Add an āEditā button that opens the edit screen for each customer, set the visibility of it to āSigned-in userās āroleā = Adminā.