This extension will help you to show attachment with user restrictions. You can add user types and assign your document to them. How to Use Use this shortcode in editor [attachment id=“1”] Use this code in php <?php echo do_shortcode(‘[attachment id=“1”]’); ?>