Skip to main content
Answer

how to get system user id in a360

  • March 31, 2023
  • 3 replies
  • 1636 views

Forum|alt.badge.img+4

Hello All,

 

How to get system username of a system

 

currently i have a file which is in C:/users/rohit/downloads/excel.xlsx

 

when i want to run this code in other machine instead of rohit it should pick his system name ,how is it possible in AA360

Best answer by Zaid Chougle

Hello All,

 

How to get system username of a system

 

currently i have a file which is in C:/users/rohit/downloads/excel.xlsx

 

when i want to run this code in other machine instead of rohit it should pick his system name ,how is it possible in AA360

Hi @Adarsh Nambiar ,

 

You can Drag and Drop → Get environment variable action under System package.

Refresh the Environment variable list.

After refresh is done you will see a USERNAME entry. Select that and store it in a variable.

 

Please check and let me know whether the solution is working or not.

 

3 replies

rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • April 3, 2023

@Adarsh Nambiar 

command prompt command - whoami 

will provide user details 

 


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • April 4, 2023

Use system variables, it has username also user download directory path.


Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+17
  • Navigator | Tier 3
  • Answer
  • April 4, 2023

Hello All,

 

How to get system username of a system

 

currently i have a file which is in C:/users/rohit/downloads/excel.xlsx

 

when i want to run this code in other machine instead of rohit it should pick his system name ,how is it possible in AA360

Hi @Adarsh Nambiar ,

 

You can Drag and Drop → Get environment variable action under System package.

Refresh the Environment variable list.

After refresh is done you will see a USERNAME entry. Select that and store it in a variable.

 

Please check and let me know whether the solution is working or not.