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