Topic
  • 2 replies
  • Latest Post - ‏2014-08-03T08:48:40Z by mmoselhy
mmoselhy
mmoselhy
5 Posts

Pinned topic How to add new user with password using dxl

‏2014-07-31T12:25:46Z |

Hi,

 

I want to create a new user and set the user name and password in dxl and run it using batch mode 

I knew how to add user using "addUser(sUserName, sUserLogin)" but I need to set the password for this user from dxl without prompt the user with password dialog.. i want to write the password in the dxl script 

 

 

how can i achieve this ?

  • a8155058
    a8155058
    23 Posts

    Re: How to add new user with password using dxl

    ‏2014-08-01T16:19:36Z  

    If my memory is still sharp, believe you want to use the set command where you set the user property with the value. In this case, the password property.

    --

    EDIT:
     

    OR something like this will work

     

    User u = find("john doe") 
    loadUserRecord(u) 
    u.password = "aaaa"
    saveUserRecord (u) 
    saveDirectory() 
    Updated on 2014-08-01T16:35:33Z at 2014-08-01T16:35:33Z by a8155058
  • mmoselhy
    mmoselhy
    5 Posts

    Re: How to add new user with password using dxl

    ‏2014-08-03T08:48:40Z  
    • a8155058
    • ‏2014-08-01T16:19:36Z

    If my memory is still sharp, believe you want to use the set command where you set the user property with the value. In this case, the password property.

    --

    EDIT:
     

    OR something like this will work

     

    User u = find("john doe") 
    loadUserRecord(u) 
    u.password = "aaaa"
    saveUserRecord (u) 
    saveDirectory() 

    Thanks a lot

    works for me