I have found a way to do it differently. With the help from the user mjauvin and the Rest API!
https://talk.plesk.com/threads/rest-api-how-to-generate-auto-login-links-for-reseller-customer.355181/
Hello all,
I am currently working on an automatic login for different Plesk servers for my final project in my apprenticeship.
Everything works as expected only I have one problem!
I make the XML request as described in the documentation. It also works and gives me a token to create a login...