MongoDB Collection Level Permission Issues
Not clear what you mean but this could be a solution:
var role = &quot;&lt;role name&gt;&quot;; 
admin = db.getSiblingDB(&quot;admin&quot;);
if (admin.getRoles({ rolesInfo: role }).length == 0)
   admin.createRole({ role: role, privileges: [], roles: [] });
admin.grantRolesToUser(&lt;the user&gt;, [role]);
   

Then you would have to run this code every time when a new database is created.
db.getSiblingDB(&lt;your dynamic database name&gt;).getCollectionNames().forEach(function (item) {
   db.getSiblingDB(&quot;admin&quot;).grantPrivilegesToRole(role, [{
      resource: {
         db: &lt;your dynamic database name&gt;, collection: item }, 
         actions: [&quot;find&quot;, &quot;insert&quot;, &quot;remove&quot;, &quot;update&quot;] }])
   })