Added UPN to activity user to match the auth changes made earlier today

This commit is contained in:
Melanie Mendoza 2018-08-27 15:03:57 -07:00
Родитель 21ebf67870
Коммит 2dc57e15d3
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -139,8 +139,8 @@ class MicrosoftTeamsMiddleware extends BaseMiddleware
@send(connector, errorResponse)
return
# Add the sender's UPN to user
user.userPrincipalName = senderUPN
# Add the sender's UPN to the activity
activity.address.user.userPrincipalName = senderUPN
# Convert the message to a hubot understandable form and
# send to the robot on success
@ -276,6 +276,7 @@ class MicrosoftTeamsMiddleware extends BaseMiddleware
name: activity?.address?.user?.name,
tenant: getTenantId(activity)
aadObjectId: getUserAadObjectId(activity)
userPrincipalName: activity?.address?.user?.userPrincipalName
return user
# Fetches the user's name from the activity