admin.apps.restrict
method
We're still building and not all features are available quite yet. Enjoy this peek into the future!
Not ready for the future? Return to the past at api.slack.com.
Usage info
This App Management API method denies an app install request, restricts an app for a specific workspace, or restricts an app across an entire enterprise. When restricted for the enterprise, an app can not be independently approved on particular workspaces, and any existing workspace-level approvals are voided. Restricting an app does not remove existing installations of the app, it only prevents future installation.
This method requires an admin.*
scope. It's obtained through the normal OAuth process, but there are a few additional requirements. The scope must be requested by an Enterprise Grid admin or owner, and the OAuth install must take place on the entire Grid org, not an individual workspace. See the admin.apps:write
method for more detailed instructions.
Exactly one of the team_id
or enterprise_id
arguments is required, not both.
Either app_id
or request_id
is required. These IDs can be obtained either directly via the app_requested
event, or by the admin.apps.requests.list
method.
Response
{
"ok": true
}