1. Home
  2. Knowledge Base
  3. GMS
  4. How do I change a variable using MML?

How do I change a variable using MML?

Answer

Setting or changing a user variable via an MML script is straightforward, requiring only that you set a new value for that variable.

For example, to change a users password to a new value you need only set the password variable for that user. This is done in a sinlge line of MML as follows

domainusernamepassword = "new_password";

Any user variale can be changed in this manner, simply change the third parameter to reflect the name of the variable you would like to work with.

If you want to change the password the user David@gordano.com, you could use the following MML:

user = "david";
gordano.com#user#password = "mine4tea";

System and domain variables can be changed in similar way, a domain variable would simply omit the username from the variable, an example of a domain variable would be

domaindatecreated

And an example of a system variable would be

administrator

You can see clearly how the variable hierarchy is constructed, omitting the username sets a domain level variable and omitting both the username and the domain sets a system level variable.

Keywords:MML, variables, user settings, user variables, system variables, domain variables

Was this article helpful?

Related Articles

Contents

Need Support?

Can't find the answer you're looking for?
Contact Support