• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved xml api set user locale language

christian

Basic Pleskian
i need to set the locale language for user, with plesk, but can't find it in xml api.
in plesk admin panel, it's in Home->Subscriptions->subscription_name->Users->User_Accounts->create User Account or change setting user account
we can set locale with interface, but can't find how to set locale with xml .
i use xml formed like this with php
$requ="<packet>
<user>
<add>
<gen-info>
<login>".$account_emails."</login>
<passwd>".$password_emails."</passwd>
<owner-guid>".$customer->guid."</owner-guid>
<name>".$customer->website."_emails</name>
</gen-info>
<roles>
<name>".$customer->email_rolename."</name>
</roles>
</add>
</user>
</packet>";

now, the question is, can i set locale value? where to set or how to set in this request.?
 
@IgorG thx, that's a great alternative. So do we confirm that for Plesk prior to Onyx 17.8, where only XML API is available, there's no way to set the language of a user?
 
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", "myMail@domain.tld", "-subscription-name", "mysubcription.domain.tld", "-owner", "myOwnerUsername", "-locale", "fr-FR" ]}'
 
Back
Top