Book a Demo

Author Topic: Overriding USERNAME variable  (Read 5970 times)

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Overriding USERNAME variable
« on: July 24, 2014, 06:53:44 am »
Hi, my company sets our USERNAME variable to a non-Helpful string, which makes it difficult to know who has a package checked out.

We would like Sparx to report on the Author we set in Options or perhaps a string we can set in a config file. That way we know you to contact about a lock. We are using SVN, which reports by our SVN logins which is fine, but Sparx reports our USERNAME (at least I assume that is where it is picking up that string).

Thanks!

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Overriding USERNAME variable
« Reply #1 on: July 24, 2014, 06:37:28 pm »
Hi,

as far as I remember:

EA stores the user who checked out a file in t_package.packageFlags.

If you want to make sure that the user in svn and EA is the same use EA security and windows login to ensure both users are the same.

Helmut  
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Overriding USERNAME variable
« Reply #2 on: July 24, 2014, 08:41:38 pm »
You could misuse the glossary to map the crude USERNAME to the real user. Or you create a package with actors where the crude name is the actor name and the alias its real name. Both not ideal, but a possible help.

q.

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Overriding USERNAME variable
« Reply #3 on: July 25, 2014, 03:13:17 am »
Here's the issue:

Windows Login: asjdfoiqw0faslfj   (i.e., incomprehensible and unmemorable string). No one can remember it.

SVN login: SSands
EA Author: Stuart Sands (origianlly was Windows Login).

I would like EA to always use my Author or SVN login, but not my WIndows login as no one will know I have the pkg checked out (unless they do a file properties from Pkg control.

So, EA must be grabbing the WIndows ID. I'm hoping there is an environment variable that can be set or an option that will make EA use a name other than the windows login.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Overriding USERNAME variable
« Reply #4 on: July 25, 2014, 03:26:59 am »
Hello,

if you want consistency between EA/svn/Windows you have to use Security Enabled and use Windows Login.

You may translate the user login by Script or Addin to the real name.

If you decide to use your own, readable, EA user name you have to cope with the consequences. You may write your own Checkin/Checkout commands to use your EA names.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Overriding USERNAME variable
« Reply #5 on: July 25, 2014, 03:34:41 am »
Quote
Hello,

if you want consistency between EA/svn/Windows you have to use Security Enabled and use Windows Login.

You may translate the user login by Script or Addin to the real name.

If you decide to use your own, readable, EA user name you have to cope with the consequences. You may write your own Checkin/Checkout commands to use your EA names.

Helmut
Thanks, Helmut.

I don't even want consistency. That is, we are OK, with SSands in one place and "Stuart Sands" in another. But we don't want "quweroqwflja" anywhere.

You mentioned translating the login. Can I do this without enabling Security ( I may have to later, but not yet)?
Would you mind pointing me to where I can learn more about this is the help file? I see an Author Class but we've already set that.

Stu

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Overriding USERNAME variable
« Reply #6 on: July 25, 2014, 04:44:20 pm »
Hi,

EA stores the login name (windows or EA) in the table t_secuser together with:
  • surname
  • lastname
  • department


You can write a little Script or Addin to view a user friendly (e.g.surname, last name) of the selected item.

At any time you are able to change an almost unreadable author to a readable one. A little script/addin will do it for the whole repository. After that you only have to update new elements.

Helmut



Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

ssands

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Overriding USERNAME variable
« Reply #7 on: July 26, 2014, 02:05:59 am »
Thank you very much!

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Overriding USERNAME variable
« Reply #8 on: July 27, 2014, 05:50:20 pm »