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.
Question
Options
- AAuthToken
- BUserDisplayName
- CUserID
- DIsLoggedIn
How the community answered
(30 responses)- A10% (3)
- B73% (22)
- D17% (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.
AuthToken represents the actual authentication token, not information *about* the user like their name or ID.
The `UserDisplayName` variable provides the human-readable name of the logged-in user, which is crucial for personalizing chatbot interactions and acknowledging the user.
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.
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.