Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

macro userID, ntname...

hi everybody!

I extracted a table from Qlik to a formatted Excel's sheet...

I need to rename the excel file with the name of the user who launch the macro, but i've a problem...

I control the accesses with NTNAME and DOMAINSID and the command "temp.UderId" don't work...(last week I controlled the accesses with username and psw and this command worked right...)

I dont't want that who see the extracted file can read the NTNAME, because I need total security cause to the file extracted will saved in the common server of my company...

I just want a command similar to "UserId" that not display confidential id or psw...

sorry for my english...

thanks who will reply!!

Alessandro

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Alessandro,
NTNAME, if you use it in section access, can be retrieved by function OSUSer().

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Alessandro,
NTNAME, if you use it in section access, can be retrieved by function OSUSer().

rwunderlich
MVP
MVP

Alessandro,

Try:

userid = ActiveDocument.Evaluate("OsUser()")

-Rob

Not applicable
Author

Thanks to all fot the replies!!!