Retrieve the domain of the logged-in user
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2022
07:56 AM
07-01-2022
07:56 AM
Retrieve the domain of the logged-in user
Hi all,
I've got the need to retrieve the domain of the user logged-in within the machine, that is: not the domain of the machine, but the domain of the user, that could be the HostName if the user is a local one, of a specific domain if the user belongs to a domain.
I've found these properties but they don't match with the need:
- Sys.Domain (it is the domain of the machine)
- Sys.UserName (it is the username, but I've been not able to retrieve information about its domain)
Have you got any suggestion?
Thanks!
Simona
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022
11:18 AM
07-05-2022
11:18 AM
Try the following:
sUserDomain = aqEnvironment.GetEnvironmentVariable("USERDOMAIN")
Irfan
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022
08:23 AM
