{"id": "authentication:authentication-permissions-instance", "page": "authentication", "ref": "authentication-permissions-instance", "title": "Access to an instance", "content": "Here's how to restrict access to your entire Datasette instance to just the \"id\": \"root\" user: \n [[[cog\nfrom metadata_doc import config_example\nconfig_example(cog, \"\"\"\n title: My private Datasette instance\n allow:\n id: root\n \"\"\") \n ]]] \n [[[end]]] \n To deny access to all users, you can use \"allow\": false : \n [[[cog\nconfig_example(cog, \"\"\"\n title: My entirely inaccessible instance\n allow: false\n\"\"\") \n ]]] \n [[[end]]] \n One reason to do this is if you are using a Datasette plugin - such as datasette-permissions-sql - to control permissions instead.", "breadcrumbs": "[\"Authentication and permissions\", \"Access permissions in \"]", "references": "[{\"href\": \"https://github.com/simonw/datasette-permissions-sql\", \"label\": \"datasette-permissions-sql\"}]"}