All authorization stuff is performed by the Metadata Adapter.
In particular, client requests for items are managed, first of all, by
getItems, which interprets the request and can leverage the knowledge of the user name. Only the item names returned by
getItems are attached to the session.
Alternatively, if
getItemsonly performs interpretation of the request at a syntax level, authorization can be delegated to
notifyNewTables (see the caveats in the docs), which can veto an incoming request and send an error notification to the client.