根据AAD ID检索小组用户ID [英] Retrieve Teams User ID based on AAD ID

查看:45
本文介绍了根据AAD ID检索小组用户ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试启动预定的主动对话(机器人在预定的时间启动对话).我设法基于Graph API获取了用户的AAD ID,但是与Teams用户ID不匹配.尝试了2个小时以上才能获得正确的ID,但我不知道该怎么做.我应该采取的最佳方法是什么?

I am trying to start a scheduled proactive conversation (the bot initiates the conversation on scheduled time). I managed to get the User's AAD ID based on Graph API, but it doesn't match the Teams user ID. Tried for over 2 hours to obtain the right id, but I can't figure it out how. What would be the best approach I should take?

推荐答案

我很好奇您如何尝试匹配"这些?无论如何,我认为它们不打算以任何方式进行匹配(aadObjectId Guid和"29:..."用户ID).结果,您应该将映射存储在您的一侧(数据库或类似数据库).无论如何,您都需要存储ServiceUrl和ConversationId来进行主动消息传递,因此也只需添加userid.

I'm curious how you tried to "match" these? In any case, I don't think they're intended to match up in any way (the aadObjectId Guid and the "29:..." user id). As a result, you should store a mapping on your side (database or similar). You need to store ServiceUrl and ConversationId anyway to do proactive messaging, so just tack userid on as well.

这篇关于根据AAD ID检索小组用户ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆