I have like a user profile page where the user can input all sorts of personal data – he/she will write his/her thing by autobinding each field. But there is an input element that is for the admin only – meaning it’s not even visible for the current user. So it’s the admin’s privilege to fill that input for every user but – if I (the owner / creator of the app) want to input data in Bob’s(normal user) account (and write in Bob’s thing) I would have to run as Bob but then I will no longer see that input (I would like to be able to input that data for Bob, from that page, and not from App Data). After running as Bob how can I return to my admin prerogatives?
Yes , I’ve made an option set – admin, normal user - and I’ve made up some dummy users for checking functionalities; I can assign those users different roles – admin/user … in App data but I haven’t done the log in/out functionality yet. How can I assume different roles and get back to admin privileges ?
Is there a difference between me – the admin owner/creator and an admin made by assigning the role admin by me to a user?
Thanks in advance and maybe not all questions are stupid.
Hi there, @mihaimat… if I understand your post correctly, you are going down the wrong path by running as Bob in order to update something for Bob that you can’t see when you are logged in as Bob (but you know this already).
The way I would likely do what you described is to make some sort of admin interface (which can only be seen by users who have the admin role) that enables an admin to select a user (or maybe more than one user) and update the user’s profile via an input that is available in the admin interface. So, in other words, don’t have a hidden input that Bob can’t see and an admin can see because, as you already know, when you run as Bob, you won’t be able to see that input. Build a separate interface for admins, and you should be all set.
Hope this helps.
Best…
Mike
This topic was automatically closed after 70 days. New replies are no longer allowed.