Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > New accounts added by xmlAPI will not inherit settings from "new Accounts" template

Patrik K

Which Alt-N products do you use?

Most recent posts: Patrik K

New accounts added by xmlAPI will not inherit settings from "new Accounts" template - 07:51am Dec 11, 2019 CDT - We have a service window this Thursday night, I will remove the "EnablePublicFolders=No", restart the server and get back to you with the result.

Thank you for your assistance so far.

New accounts added by xmlAPI will not inherit settings from "new Accounts" template - 11:52am Dec 9, 2019 CDT - I have sent you an email with an attached zipfile containing the requested files.

New accounts added by xmlAPI will not inherit settings from "new Accounts" template - 05:02am Dec 9, 2019 CDT - I have changed the xml per your suggestion (moved remote tag into parameters tag).

The "CreateUser" still does not behave as expected and does not inherit the "NewAccounts" template settings. However your workaround is now working , the "UpdateUser" call now sets the RemoteAdmin setting the way I have them in the xml request...

New accounts added by xmlAPI will not inherit settings from "new Accounts" template - 05:16pm Dec 5, 2019 CDT - <<< continued >>>
        <EditImapRules>1</EditImapRules>
</RemoteAdmin>
</Request></API></MDaemon>

////////////////////////////////////////////////////////////
--- [Debug response] ------------------------------------------------------------+
 > recieving ...1295 bytes
////////////////////////////////////////////////////////////
<?xml version="1.0" encoding="utf-8"?>
<MDaemon>
<API>
<Request encoding="utf-8" version="19.5.0" echo="1" verbose="1">
    <Operation>UpdateUser</Operation>
        <Parameters>
            <Domain>mxxxx.com</Domain>
<Mailbox>spip22</Mailbox>
<Details>
<Frozen>No</Frozen>
<Disabled>No</Disabled>
<MustChangepassword>No</MustChangepassword>
<DontExpirePassword>Yes</DontExpirePassword>
</Details>
</Parameters>
    <RemoteAdmin>
<Enabled>1</Enabled>
<EditFullname>1</EditFullname>
<EditPassword>1</EditPassword>
<EditFwd>1</EditFwd>
<EditAutoResponder>1</EditAutoResponder>
<EditImapRules>1</EditImapRules>
</RemoteAdmin>
</Request>
<Response version="19.5" session="1830108D" et="0.052129">
<Status id="0" value="0x8135403A" message="Public folders are not enabled"/>
<ServiceName>Management Web Service (64bit) for MDaemon Messaging Server</ServiceName>
<ProductVersion>19.5.0</ProductVersion>
<ServiceVersion>19.5.0.5</ServiceVersion>
<SERVER_NAME>xxxx</SERVER_NAME>
<DOMAIN>xxxx</DOMAIN>
<URL>/MdMgmtWS/</URL>
<AUTH_USER>xxxx</AUTH_USER>
<TimeStamp>2019-10-15T10:55:18.000Z</TimeStamp>
<Uptime>16 days 6 hours 43 minutes 36 seconds</Uptime>
<Operation>UpdateUser</Operation>
</Response>
</API>
</MDaemon>
////////////////////////////////////////////////////////////

-> [0x8135403A] Public folders are not enabled >
> END

New accounts added by xmlAPI will not inherit settings from "new Accounts" template - 05:12pm Dec 5, 2019 CDT - Thank you for looking into it,

I took your suggestion and created an "UpdateUser" call after the account was created (somewhat modified) but ran into other problems instead..

some settings changed, the "DontExpirePassword" was NOT set with only create but did set to yes with the update call. The RemoteAdmin properties was empty though when I checked in the GUI even after update and I got an publicfolder warning?..

OK


You are visiting as a Guest user.