Lots of threads in the forum about collecting the user-id and the new inspectors for v7. However, I have not seen any posts in regards to collecting the user-id AND the domain the user-id is a member of. In a multi-domain environment with no guarantee of uniqueness of user-ids, the domain is required to identify a unique user.
I don’t see in the “Logon User Name” area of the registry any domain name. Yet, Windows obviously knows what domain you are in. It is even nicely displayed in the environment variables, but of course the system context that BES runs in won’t “see” this.
Is there an easy way to get this that I have missed?
Sorry, no. This returns the members of the local groups as opposed to the logged on user. I’m trying to get the domain\user out of the following relevance.
names of logged on users
sids of logged on users
“Names” gives me the name of the logged on user, but not the domain.
“sids of logged on users” run in the debugger returns “Error: The expression could not be evaluated: Windows Error: A required privilege is not held by the client.” even though I am an administrator on the system. I did not pursue this because the documenation says “Returns the Security ID (SID) of the user associated with the session’s primary access token.” The SID is a hex string and not the domain\user in text.
But, playing with it some more I put “sids of logged on users” in a property and it is returning what I want.
So, the only open question is - is there a way to get the relevance to evaluate in the debugger (tried the alpha action debugger too; no joy there either)?