In that case you can use the hook filter:middleware.renderAdminHeader this is fired when we are building the admin header which includes the plugins dropdown. Inside the hook you can look at the hookDatar.req.uid to get the uid of the user making the request. Below is a sample:
myPlugin.filterMiddlewareRenderAdminHeader = async (hookData) => { console.log(hookData.req.uid, hookData.templateData.plugins); // TODO: filter plugins in `hookData.templateData.plugins` based on hookData.req.uid return hookData; }
A
Arvin_z
@Arvin_z