Hi Anish, if you’re happy to display a generic “You don’t have permission to access that” message to everyone else, you can achieve that with the ‘Who can view this page?’ field on the Settings tab for your page.
It will be more complex than that, I’ll basically have a few files on that page itself, some available to all members and some to a particular user group.
So wanted an if statement like
<% if CurrentMember ==“Corporate member”%>
Downloadable files for that user group
<% else%>
Downloadable files for non logged in users
<% end_if%>