UiPath-ADPv1 Attended Automation Practice Question
An attended automation is deployed to users who start it from the UiPath Assistant. The business wants each run to be associated with a specific employee for auditing, and the developer must capture that identity inside the workflow without asking the user to type it. Which approach should the developer use?
⚠ Common exam trap
The trap here is reaching for a credentials asset or an Orchestrator API call to identify the user, when the interactive session already exposes the employee identity through environment variables.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Read the Windows environment variable USERNAME with the Get Environment Variable activity.
An attended robot executes in the employee's Windows session, so the USERNAME environment variable reflects that employee and can be read without prompting. This satisfies the auditing requirement automatically. Retrieving a stored credential may return a shared account, prompting the user contradicts the no-typing constraint, and querying Orchestrator adds needless complexity when the identity is already present locally.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Read the Windows environment variable USERNAME with the Get Environment Variable activity.
Why this is correct
Because the attended robot runs in the employee's interactive Windows session, the USERNAME environment variable resolves to that employee's account. Reading it with Get Environment Variable captures the identity automatically, without prompting the user, and the value can be written to a log or queue item for auditing. This aligns with the requirement that each run be tied to the employee who started it.
- ✗
Add an Input Dialog asking the user to type their employee ID at the start of each run.
Why it's wrong here
This approach does capture an identity, but it requires the user to type it every run, which the scenario explicitly rules out. It is also error-prone and can be spoofed. The requirement is to capture the employee identity automatically, so prompting for manual entry contradicts the stated constraint even though it produces an auditable value.
- ✗
Query the Orchestrator API for the robot that executed the job and extract the associated user.
Why it's wrong here
Orchestrator can report which robot ran a job, but querying the API from inside the workflow adds latency, requires authentication, and complicates an otherwise simple attended process. The employee identity is already available locally in the session, so this indirect method introduces unnecessary dependency on Orchestrator connectivity and does not improve accuracy over reading the session user directly.
- ✗
Use the Get Credential activity to retrieve the employee's stored credential and log the username.
Why it's wrong here
Get Credential retrieves a stored credential asset, which may belong to a shared service account rather than the individual who launched the job. It also requires the credential to be preconfigured in Orchestrator, adding setup that the scenario does not mention. The username returned would reflect the asset configuration, not necessarily the employee running the automation, so it is unreliable for per-run auditing.
About these practice questions
One of 276 original UiPath-ADPv1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official UiPath exam blueprint
This UiPath-ADPv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADPv1 exam.