user_resource_granted event

Workspace apps are deprecated

Legacy workspace apps are deprecated and will retire in August 2021. Learn more.

User resource was granted to your app

Compatibility: Events API


{
    "token": "XXYYZZ",
    "team_id": "TXXXXXXXX",
    "api_app_id": "AXXXXXXXXX",
    "event": {
        "type": "user_resource_granted",
        "user": "WXXXXXXXX",
        "scopes": [
            "reminders:write:user",
            "reminders:read:user"
        ],
        "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606"
    },
    "type": "event_callback",
    "authed_teams": [],
    "event_id": "EvXXXXXXXX",
    "event_time": 1234567890
}

We send this event when a user grants your workspace app the permissions you recently requested with apps.permissions.users.request. Now you can work on their behalf!

Events API compatibility

Subscribe to this event via the Events API.

Events of this type will be wrapped in metadata when sent via the Events API.

Unavailable in the RTM API

This event type is compatible only with the Events API.

Was this page helpful?