PL-400 · Question #269
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 A. AuthToken D. IsLoggedln. When configuring a Power Virtual Agents chatbot to authenticate users in Microsoft Teams, the AuthToken variable provides the user's authentication token, and IsLoggedIn indicates whether the user is currently authenticated.
Question
Options
- AAuthToken
- BUserDisplayName
- CUserlD
- DIsLoggedln
How the community answered
(61 responses)- A79% (48)
- B7% (4)
- C15% (9)
Why each option
When configuring a Power Virtual Agents chatbot to authenticate users in Microsoft Teams, the `AuthToken` variable provides the user's authentication token, and `IsLoggedIn` indicates whether the user is currently authenticated.
The `AuthToken` variable stores the authentication token generated upon successful user login, which is essential for securely accessing protected resources or user-specific information from an external identity provider.
UserDisplayName is typically retrieved from an identity provider *after* successful authentication, often by using the AuthToken to make a subsequent call, rather than being a direct variable returned by the PVA 'Authenticate' action itself.
UserID is typically retrieved from an identity provider *after* successful authentication, often by using the AuthToken to make a subsequent call, rather than being a direct variable returned by the PVA 'Authenticate' action itself.
The `IsLoggedIn` boolean variable provides a direct status check, indicating whether the user has successfully completed the authentication process within the chatbot session, which is crucial for conditional logic.
Concept tested: Power Virtual Agents authentication variables
Source: https://learn.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication
Community Discussion
No community discussion yet for this question.