Skip to main content

Server Permissions

Scope: ServerRpc (server-wide operations tied to the Client) For an overview of RPC and the list of all RPC pages, see RPC.

Extension approvals (experimental)

permissions()->extensionApprovals() stores, lists and revokes per-user approvals for the extensions of installed plugins. This API is experimental and may change or be removed in the future. A stored approval applies to a later request when that request’s capabilities are a subset of the approved capabilities.

Approve a pending request

Pass grant() the ID of the session that owns the pending extension permission request and the ID of that request. Call it before the host handles the request as usual. granted tells you whether the request was eligible and the approval was stored. On success, approval holds the stored approval. grant() only stores the approval. It does not respond to the pending request. The host still has to respond to the request in the usual way. For how to respond, see Tools, permissions, commands, and UI.

List and revoke

When you omit sessionId for list() and revoke(), or pass null, they target the server’s settings profile. When you pass the ID of a connected session, they target that session’s settings profile. This does not limit the approval to that session only.
When the user explicitly selects an approval to revoke, take it from that list or from the approval in a grant() result, and revoke it with the same settings profile.
installationKey is an opaque installation identifier. When you revoke, pass the value from the list or the grant result unchanged. You can also pass the arguments as an array.
Last modified on November 26, 2026