I have a entity type Products with multiple entities in it. I want to give View, Edit, Delete Access of each entity to users only whose Emails are listed under field_user_email. I want to restrict access to rest of the users, whose Email-id is not listed under field_user_email field.


This is a generic question, so my answer will be generic too.

First, inserting email addresses of users to grant permissions is not a standard Drupal way, you have to have an entity reference pointing to the users.

If you are using Drupal 7 you can use flexi access

For Drupal 8 you can find a previously answered question here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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