• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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", "[email protected]", "-subscription-name", "mysubcription.domain.tld", "-owner", "myOwnerUsername", "-locale", "fr-FR" ]}'
 
Back
Top