I am trying to figure out how I can lock down a page (part of my site) to a list of users that I have in another MySQL DB.

Ideally I would like to call the DB and see if the user has access each time they login. Is there any modules that would do this? Or has anyone done anything similar before.

1 Answer 1


You can add the secondary database to Drupal by following this tutorial: https://www.drupal.org/node/18429

I would probably run a hook_node_view so that it's called before rendering the node and adding your custom logic there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.