Single login-less or one-time login links

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
el_reverend's picture

Hi all,

I have a Drupal question you might have some insight on. I am working on a drupal site and some of the changes require approval from other members of the company. These members are always going to be changing depending on the area of responisbility. Additionally the team decided that they would rather not have these members log in to the site as the amount of lost passwords, etc. might become a larger issue. The links are sent via email to various people only to LOOK AT but not change existing content and how it would appear on the page or section.

I was wondering if there was a way to send a special URL in an email that would allow them, based on a special (tokenized?) URL to click and see the unpublished content just as if it was published. Kinda like the preview does in WordPress.

Do you have any experience with this? If so, I'd appreciate any tips you might be able to give me.

Thanks.

Comments

Drupal's got permissions

stevenator's picture

Hi @el_reverend,

What you are describing sounds like a workflow that you can create using Drupal's permissions, roles, and rules (you can also use Drupal's core trigger/actions instead); permissions and roles are core but Rules is a contrib module.

Everyone would still have a user login and their own password, but you can create roles that would have any combination of viewing, editing, and deleting permissions to any combinations of content that would then be assigned or unassigned to the users as needed. Those roles can easily be added or removed form user accounts by site administrators.

ou could then create your workflow system with Trigger/Actions or Rules such that when Contetn Type X is created/modified an emailed goes to users with Roles Y to click through and view that content. If they don't have the permissions to edit then all they can do is view. Should be pretty straight forward and require very little customization

If you are comfortable writing your own modules you could even add your own permissions using hook_perm().

Hope that helps
Steve

Hi Steve, I thought of this

el_reverend's picture

Hi Steve,

I thought of this route as well, but its too complicated to manage the creation and deletion of 'approval users' that may change on a daily basis. I was thinking of something extremely simple not only for the administrators, but for the 'approval users'. If they don't have to sign up, and remember yet another username & password, but simply click a link; that would be easiest. Not sure if this is something I can build in this instance of the project.

Thanks again

Are you looking for something

christefano's picture

Are you looking for something like Peek?

  http://drupal.org/project/peek

Hi Christefano, thanks that

el_reverend's picture

Hi Christefano,

thanks that is along the line I was looking for. Great. While this module is still in beta I will try it out and report back.
Again thanks for pointing me in the right direction.

Yup, no problem. If you give

christefano's picture

Yup, no problem. If you give it a try, please do report back what your experience is.