How to implement the "Grant Users" for private access?

Created on 21 August 2023, 10 months ago
Updated 26 August 2023, 10 months ago

I'm just starting to work with this module, and want to implement an access policy like the one shown on the project page, where only the current user and any manually specified users will have access. The first part seems easy enough, by creating a Private access policy. I've been poking around the interface and can't seem to find where I can add the option to specify additional users.

Can someone point me in the right direction?

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Documentation

Created by

πŸ‡¨πŸ‡¦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mandclu
  • πŸ‡ΊπŸ‡ΈUnited States partdigital

    Hi @mandclu, thanks for reaching out.

    To add the user field do the following:

    1. Make sure that Manual mode is turned on from Access policy settings. (Note: If you're using the dev branch, this is now called "discretionary" mode).
    2. Add a new User entity reference field to the content type. (For example: "Allowed users")
    3. Edit the private access policy that you created.
    4. Add the access rule: "Allowed users field has reference to current user"
    5. Under Widget settings click "Show widget"
    6. Save the access policy

    You should now be able to use that field on the Access tab of each node.

    Documentation is definitely on the road map. We'll start working on that once beta1 comes out.

  • Status changed to Fixed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States partdigital

    I've added some documentation here on how to create this access policy.
    https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... β†’

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024