• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved xml api creat role for user deprecated

christian

Basic Pleskian
i used xml api to create role to additional user in plesk 12.5., to give them right to manage customers emails on her website. working perfectly in 12.5
but
after upgrading to version 17, the xml api don't want to make the job.

i followed the minimal sample at Creating a Role
but give Error:'This feature is no longer supported.'
what the hell. ??

where is the right doc? how to do this,? to give right to user to manage emails or other.?
 
ok, so, to resume.
you was deleted part of xm apî, because you determinate , on your side , simply, that is rarely used. thanks for customer that use it. !!!
and replaced by ??? NOTHING..!!
you api rest V2 contain nothing to manage right for customer account.
thank you to wrecked our work and automation process !!
ARE YOU A PARTNER OR AN ENNEMY ??
 
Yep, ended up with this and it works well:
Code:
curl -k -X POST -u 'admin:PaSSword' "https://IP_ADDRESS:8443/api/v2/cli/user/call" -H "accept: application/json" -H "Content-Type: application/json" -d '{ "params": [ "-c", "myUsername", "-role", "myRole", "-passwd", "PaSSword!", "-cname", "myName", "-email", "[email protected]", "-subscription-name", "mysubcription.domain.tld", "-owner", "myOwnerUsername", "-locale", "fr-FR" ]}'
 
https://IP_ADDRESS:8443/api/v2/cli/user/call now returns 404... based on the Swagger, there's no more user/call...
Any alternative?
 
https://IP_ADDRESS:8443/api/v2/cli/user/call now returns 404... based on the Swagger, there's no more user/call...
Any alternative?
Solved.... after playing around, the trailing slash was the issue. No clue why it changed, maybe a change in PHP version of the script calling the API...

In brief:
  • https://<IP_ADDRESS>:8443/api/v2/cli/user/call/ returns 404
  • https://<host.domain.tld>:8443/api/v2/cli/user/call/ returns 404
  • https://<IP_ADDRESS>:8443/api/v2/cli/user/call all good
  • https://<host.domain.tld>:8443/api/v2/cli/user/call all good
 
Back
Top