Skip to main content
Question

Different user Id received in interactive message payload

  • October 25, 2021
  • 1 reply
  • 284 views

Hi,

When the User performed User OAuth through our User App (REST API App) we captured the

owner_id that is the user_id for the User. To get the owner_id, '/restapi/oauth/token' endpoint is called with the received 'code. For a particular user the owner_id is :302755004

When the User clicks Action.Submit button in a Adaptive card(Created by our Bot App) with interactive messages we received a payload that contains the id of the user in user field as below for the same user.

1635170827878.png
Here user.id is coming as 194404355.

We require the correct userid of the user so that we can identify who initiated the action.

Could you please help us why the userIds are different and we need to do in order to get the unique userId






1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2330 replies
  • October 25, 2021

Right now, the adaptive card does not send the actual extension id, we will improve and support that in the next release.

Meanwhile, you can use the work around solution as follow:

Pass the extension id (owner_id) to the card data object, when the Submit button is click, the framework will pass it back.

{
    type: "ActionSet",
    actions: [
        {
            type: "Action.Submit",
            title: "Submit",
            data: {
                path: "some_path",
                user_id: "owner_id"
            }
        }
    ]
}

// receive submit data
console.log(req.body.data.user_id)

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings