userId 是全局唯一标识符吗?

Is the userId globally unique identifier?

我正在使用 Bot Framework v3 Node.js SDK 构建 Microsoft Teams 机器人。 我检查了传入会话中的用户对象,它看起来像这样:

"user": {
    "id": "29:13z***",
    "name": "N***",
    "aadObjectId": "3***"
}

因为,我想使用user.id字段作为主键,我对它的唯一性很感兴趣。

它是全球唯一标识符吗?

查看了 Teams 文档,但我没有看到任何保证每个租户中的每个用户都会有所不同。

user.id 是每个 Bot 用户的 唯一 ID,可用于 start personal conversations用户。

请使用 user.aadObjectId 这是当前用户的 Azure Active Directory 对象 ID。