I am currently creating a user management admin system where admins are able to create new users. Is it possible to integrate a „Login as account“ Button where admins are able to Check the new created user Profile? Like bubble does this in the database users table?
Create an API Workflow where the first step is to send the magic link, but with an option to only generate the link without sending the email. Then, the next action would return the link to the API and register this call in the API Connector. Be very careful with conditionals to properly protect this endpoint so that only admin users can use it. I suggested doing this through the API Connector because I tested it normally on the front end, trying to do the same process, and it didn’t work—it only worked when I did it through backend workflows, where I used Bubble’s API key. Here’s how it turned out:
Then, in the front-end workflow, call this action, and the return—which would be the magic link—you open it. Since this kind of logs out the current admin user and logs into the other user’s account, I thought the admin user on the front end could click to copy the link and open it in an incognito window, so they won’t be logged out of their current account.
This part is up to you—do what you think is best—but the path has been given. Yes, it is possible to log into another account; just be very careful with rules and conditionals to keep this extremely secure.