I am trying to impersonate user(system user) using admin session.
For admin session, I am using repository.loginAdministrative
which is now deprecated. I dont want to use this.
Is there any other way I can replicate admin user and save the node under desired location and use the same.