Admin tab

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.

1 Like
  • 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ā€.

2 Likes