How to open another Account's User folder using Terminal? I used to be able to use one of these commands to switch to another user account (my own) to work on it.
john$ login admin
password:

admin$ open .
LSOpenURLsWithRole() failed with error -610 for the file /Users/admin/.

I have tried other methods as well.
john$ su - admin
john$ exec su - admin
john$ sudo -u admin bash

They all result in the same error. I understand it's a security restriction. The question is what rules are restricting this? I do have the password shouldn't I be allowed, once signing in, access to those files?
What can I do to gain access as if I am in that user account?

EDIT
Also tried:
john$ ssh admin@localhost
Password:
admin$ open .
LSOpenURLsWithRole() failed with error -610 for the file /Users/admin.
Jump Desktop will allow you to log in to the same computer you are using as a different user. You will have access to all of your files and apps.
I have not done this extensively, but I did test it and it worked in Jump Desktop.
The default macOS Screen Sharing.app will not do this.
Screens 4 seemed like it was going to work, but it did not successfully connect.