View another event... accounts_changed app_home_opened app_mention app_rate_limited app_requested app_uninstalled bot_added bot_changed call_rejected channel_archive channel_created channel_deleted channel_history_changed channel_joined channel_left channel_marked channel_rename channel_shared channel_unarchive channel_unshared commands_changed dnd_updated dnd_updated_user email_domain_changed emoji_changed external_org_migration_finished external_org_migration_started file_change file_comment_added file_comment_deleted file_comment_edited file_created file_deleted file_public file_shared file_unshared goodbye grid_migration_finished grid_migration_started group_archive group_close group_deleted group_history_changed group_joined group_left group_marked group_open group_rename group_unarchive hello im_close im_created im_history_changed im_marked im_open invite_requested link_shared manual_presence_change member_joined_channel member_left_channel message message.app_home message.channels message.groups message.im message.mpim pin_added pin_removed pref_change presence_change presence_query presence_sub reaction_added reaction_removed reconnect_url resources_added resources_removed scope_denied scope_granted star_added star_removed subteam_created subteam_members_changed subteam_self_added subteam_self_removed subteam_updated team_access_granted team_access_revoked team_domain_change team_join team_migration_started team_plan_change team_pref_change team_profile_change team_profile_delete team_profile_reorder team_rename tokens_revoked url_verification user_change user_resource_denied user_resource_granted user_resource_removed user_typing workflow_deleted workflow_published workflow_step_deleted workflow_step_execute workflow_unpublished
scope_granted event Developer preview has ended This feature was exclusive to our workspace apps developer preview . The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.
OAuth scopes were granted to your app
Compatibility:Â Events API
When subscribed and your workspace app is granted a new scope, we'll dispatch this event to tell you about it.
{
"token": "verification-token",
"team_id": "T1DD3JH3K",
"api_app_id": "A7449NRUL",
"event": {
"type": "scope_granted",
"scopes": [
"files:read",
"files:write",
"chat:write"
],
"trigger_id": "241582872337.47445629121.string"
},
"type": "event_callback",
"authed_teams": [],
"event_id": "Ev74V2J98E",
"event_time": 1505519097
}
The inner event
describes an array of awarded scopes
and includes a trigger_id
you may use with dialog.open
or Permissions API requests.
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 .