News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Different user Id received in interactive message payload
Tags: message
Oct 25, 2021 at 7:19am   •   1 replies  •  0 likes
Rajeev Garg

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 Answer
answered on Oct 25, 2021 at 7:42am  

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)

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us