Book a Demo

Author Topic: Add User by script?  (Read 5042 times)

jakson

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
Add User by script?
« on: July 30, 2015, 08:48:17 pm »
How to add user by vb-script?

By "add" I mean:
 - add user with login, name, surname, dept
 - set user password
 - add user to specific group

Is this possible?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add User by script?
« Reply #1 on: July 31, 2015, 07:20:15 am »
There is no API call for it. However, you can add a user to the t_secuser. The password can be filled with a default. Set a password manually for a user (the default) and retrieve it from t_secuser. This will also do for the new user (security is something else, but I would not look at an repository as the Bank of England). E.g. "5PDCD_FT"  will be the "password"  password.

q.
« Last Edit: July 31, 2015, 07:24:41 am by qwerty »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Add User by script?
« Reply #2 on: July 31, 2015, 08:57:45 am »
Quote
E.g. "5PDCD_FT"  will be the "password"  password.
Have you tried changing a password in a recent version of EA?

If you do, EA stores only an SHA-256 hash of the password+salt.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add User by script?
« Reply #3 on: July 31, 2015, 07:29:13 pm »
Oh. That's new  :D So I speak for up to 9.3. Honestly the password did not look like the one I had in mind from the past (I took that from V12).

q.
« Last Edit: July 31, 2015, 07:30:37 pm by qwerty »