in Wordpress it is possible to restrict media libraries access with this snippet in the functions.php:
add_filter(\'ajax_query_attachments_args\', \'user_group_li