Sending activity onBehalfOf does not resolve to a user #4788
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Versions
botbuilder": "^4.20.0
node v18.20.3
Google Chrome Version 129.0.6668.101, Firefox 131.0.3 (aarch64)
macOS 14.3 (23D56)
Describe the bug
We are sending an activity to a conversation. We want to use the onBehalfOf feature, so we append the appropriate properties (see the code snippet below). The config.onBehalfOf.oid is the oid of the trusted MicrosoftAADUser who triggers this action. We tested this with different users and the mri never got resolved and we always end up using the displayName as a fallback. We assume that the construction of the mri is correct, but also tried variants which only used config.onBehalfOf.oid as a value.
Question is: Is the construction of the mri correct? ("8:orgid:...) This worked a few months ago, so we assume it is either broken or a change happened, which we are not aware of.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We expect that the user's oid is being resolved and used by displaying the message including the onBehalfOf feature.
The text was updated successfully, but these errors were encountered: