nerdexam
Microsoft

PL-400 · Question #311

You are configuring a Microsoft Power Virtual Agents chatbot to use the authenticate option for Microsoft Teams only. You need to select the variables that will return information about the logged…

The correct answer is B. UserDisplayName C. UserID. To retrieve specific details about an authenticated user in a Power Virtual Agents chatbot for Microsoft Teams, you should use the UserDisplayName and UserID variables.

Submitted by carter_n· Apr 18, 2026

Question

You are configuring a Microsoft Power Virtual Agents chatbot to use the authenticate option for Microsoft Teams only. You need to select the variables that will return information about the logged in user. Which two variables should you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • AAuthToken
  • BUserDisplayName
  • CUserID
  • DIsLoggedIn

How the community answered

(30 responses)
  • A
    10% (3)
  • B
    73% (22)
  • D
    17% (5)

Why each option

To retrieve specific details about an authenticated user in a Power Virtual Agents chatbot for Microsoft Teams, you should use the UserDisplayName and UserID variables.

AAuthToken

AuthToken represents the actual authentication token, not information *about* the user like their name or ID.

BUserDisplayNameCorrect

The `UserDisplayName` variable provides the human-readable name of the logged-in user, which is crucial for personalizing chatbot interactions and acknowledging the user.

CUserIDCorrect

The `UserID` variable returns the unique identifier of the logged-in user, which can be used for backend integrations, retrieving user-specific data, or logging purposes.

DIsLoggedIn

IsLoggedIn is a boolean variable that indicates whether a user is authenticated or not, rather than providing specific user identity details.

Concept tested: Power Virtual Agents user authentication variables

Source: https://learn.microsoft.com/en-us/power-virtual-agents/configuration-end-user-authentication

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice