Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

One of the most important entities Drupal uses is the user entity.

4
votes
0answers
55 views

How is password hashing/encryption performed?

I am fielding a question for a project that is asking if we use Blowfish crypt in Drupal, or, if we could. The class that performs password hashing in 8 is PhpassHashedPassword, based on https://www....
4
votes
0answers
395 views

CAS Server setup

I have setup a Drupal 8 with CAS configurations - https://dev.cas.local Here is the configuration: Version: 2.0 or higher Hostname dev.cas.local Port 443 URI /cas SSL Verification Verify using web ...
3
votes
0answers
167 views

How to hide a menu item of a view for an administrator?

I have created a view with Views and restricted the access by Role. I also created a menu with the view, and I didn't select the Administrator role to be included (so Administrator role does not have ...
3
votes
0answers
52 views

User menu on 404 pages

On 404 pages, no user menu is displayed. I have tryed to use the 404 Navigation module but it does not help. I also tried this code in template.php, but it doesn't work. function bartik_user_menu() ...
3
votes
0answers
234 views

ADFS integration - user session creation without the user creation

I did not find my answer after reading some articles. For the user authentication, my Drupal site needs to communicate with a SAML IdP (ADFS). I have an additional requirement: The user must be ...
3
votes
0answers
262 views

Single Sign On (SSO) with Active Directory (AD)

I have some issues with the single sign on option from LDAP. Currently it is possible that users can manually login on the website based on their AD credentials. This works with the LDAP module. But ...
3
votes
0answers
4k views

“View private files” permission not effective

I have 3 users, an administrator, an uploader, and a viewer. The uploader has a file field attached to his profile and the destination folder of the uploaded (in my case .pdf) file is set to the ...
3
votes
0answers
207 views

Why are Active Forum Topics and New Forum Topics visible only to Administrator?

I have set up forums in Drupal 7 with the Forum Access module enabled and the Active Forum Topics block and the New Forum Topics block enabled on the home page. Everything works as it should except ...
3
votes
0answers
93 views

Is there a clear suggested path for migrating user fields from core 6 to 7 to 8?

For those still migrating user data (e.g., interests, languages spoken, etc.) from Drupal 6, given the current status and plans for Drupal 8, is there a preferred way to manage those fields in Drupal ...
3
votes
0answers
219 views

Having an entity registration for an organic group

I have a website where we organise yearly events of 2 - 3 different types. To register users to the event, I'm currently using the entity registration module. (Tell me if you think this is not a good ...
3
votes
0answers
3k views

Clear example of Service module authentication and authorization

I've been playing around with Service module, which it seem the best module for exposing web service specificaly I have REST architecture. Nevertheless haven't been able to clear how does the ...
3
votes
0answers
330 views

D7 | views filter to show current user nodes or all nodes if admin

I have a site with multiple roles: admin editor1 editor2 editor3 … I would like to be able to show a node reference drop down menu to only show current users's nodes. So each user can only node-ref ...
2
votes
0answers
36 views

Disable front-end access

I want to disable the front-end access of my headless Drupal site, that is just a REST API for a Vue site. Except for the login page, there is no need to access any node, taxonomy or view directly as ...
2
votes
0answers
49 views

How do I use hook_entity_access() to let anonymous users upload private files?

I have same issue described in How to skip the ReferenceAccess constraint on a file upload by an anonymous user? So I need to use hook_entity_access() or hook_ENTITY_TYPE_access() to solve the issue. ...
2
votes
0answers
466 views

Drupal 8 Private file is accessbile by anonymous user

I have created a content type with file field and set Upload destination is private files. I have also set the $settings['file_private_path'] = '/path/to/private'. But the file is accessible by ...
2
votes
0answers
72 views

Is it possible to work with authenticated users that are never stored in the database?

I have to authenticate users against a remote authentication API. In the API's response there are several user properties, some of them mappable to a Drupal User some of them not. Because of legal ...
2
votes
0answers
76 views

Is ContentEntityBase::access affected by hook_ENTITY_TYPE_access?

Are calls to the access() method on entity objects which is provided by ContentEntityBase affected by hook_ENTITY_TYPE_access()? I am asking because the Paragraphs module, in src/...
2
votes
0answers
79 views

Disable some category In-Place Editor (IPE)

I'm working with a Lightning distribution of Drupal 8. I need to show to the editor, for example, only the Create contenttab under Manage content tab in panelizer. I'm not finding anything to do this. ...
2
votes
0answers
145 views

One-time registration email link

I need to send to specific persons one-time registration email links, in order to create users with specific roles. The "normal" registration should be available as well.
2
votes
0answers
81 views

How to create a views block that lists all users who bought a product?

I need to create a list of users who purchased a product (uid & email) within that product page for administration so the Admin could have a list of them (using Views). It is similar to how the ...
2
votes
0answers
601 views

Password migration

I know that from Drupal 6 to Drupal 8 we needed to make the MD5 hash on migration, but I thought that from 7 to 8 it wasn't going to need any changes. Drupal 8 Migrate examples doesn't mention ...
2
votes
0answers
150 views

How to set all subusers created by a user, or their role, to expire on a specific date

I need to create licensing functionality for a website. Part is done: via the subuser module, I can set up a licensing admin who can create a certain number of subusers that function as licenses based ...
2
votes
0answers
58 views

Is it possible to search by Realname?

I have the Realname module installed to display the real name of my users in my database rather than the name. ie realname Bob smith however name is bsmith. However the search box only looks for name ...
2
votes
0answers
169 views

Restrict view access of a group content node based on OG role

I'm using Drupal 7 and Organic Groups along with a number of popular contributed modules. My situation: I have a group called 'Project'. There are multiple group roles that have access to this group; ...
2
votes
0answers
31 views

D7 - when I change a display suite display mode, shouldn't views using that display mode also change?

I made a change to a display suite display mode, hoping that it would change a view that uses that display mode. It did work while logged in, but as soon as I logged out it didn't work. Yep, I did ...
2
votes
0answers
916 views

How to properly add a second join in a custom Views relationship handler?

I'm developping a Drupal 7 module that allows text fields to reference entities that have a title / name matching the field's text value. I have successfully exposed Views relationships for these text ...
2
votes
0answers
47 views

Users rate and comment each other after an event?

I'm working on a project where users trade services (like AirBNB or Uber). I'm a bit stuck at the stage when the task is done and the two users have to rate each other. I have ratings sorted using ...
2
votes
0answers
206 views

Drupal 7 multistep form submits user_register_submit handler to early

After two days of searching and debugging I decided to give up and ask help here... I'm building a multistep form in Drupal 7 with 4 steps. The user_register_form is in the second step. For building ...
2
votes
0answers
51 views

Taxonomy fields on Profile2 edit form

I'm hoping someone can help me. I've been stuck on this problem for a while and can't find help. I'm relatively new to theming in drupal, so forgive me if this is a basic question. I have a taxonomy ...
2
votes
0answers
39 views

Login process after course choise

I have a website where visitors can follow a course. I have several course available. I have problems to achieve the following process: A anonymous visitor can see a list with available courses and ...
2
votes
0answers
110 views

user picture changes after saving profile

to solve a problem related to the expiration date of some users on my website I made a module that updates just the "expiration" field when a user successfully place an order. The structure of the ...
2
votes
0answers
190 views

Set user profile fields that are not visible on registration form

Very new to Drupal, first of all. I'm working on a custom module for user registration (we're still in Drupal 6) that I'd like to do a few things: Geocode the user-supplied zipcode to get a city/...
2
votes
0answers
173 views

Entity Translation - permission for translating only own nodes of specific content type

I use the Entity Translation module to translate my content type "profile". With the content type "profile" an authentificated user can create a profile and then translate some of the nodes' fields. ...
2
votes
0answers
70 views

Date iCal and Organic Groups: Make an iCal feed (subscription) accessible for a private group outside of Drupal?

I'm making a calendar iCal feed for a private group using Date iCal, Organic Groups and Views. The group events created are private, for that group only, causing a dilemma. It all works great while I'...
2
votes
0answers
122 views

Autologin and “Require e-mail verification when a visitor creates an account.”

I'm trying to avoid users getting emails when their account is created, so I've unchecked the Require e-mail verification when a visitor creates an account setting in Registration and cancellation. ...
2
votes
0answers
107 views

In an Organic Groups group, what permissions should be required to create content?

If I create an Organic Groups group node, MyGroup (nid=1234), and a content type, "Posts", that is set up for use as group content, what should the necessary permissions be to allow, for example, an ...
2
votes
0answers
165 views

Show profile fields depending on the profile users role

We are using profile2 to display users listed on our site which has different member levels. Is there an easy way to hide certain fields based on the profile2 users role. We still like them to enter ...
2
votes
0answers
124 views

Automatic entityform creation after user registers with rules

I would like to create a draft entityform for every entityform type after a user registers, I've been trying to attempt to create a list of entityforms in rules but can't work out how. This is needed ...
2
votes
0answers
117 views

Returning the userId from an external script

I have a very simple external php script which will not return the userId. The script is posted below: <?php include_once "/includes/bootstrap.inc"; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); global ...
2
votes
0answers
65 views

How can I display reviews related to a profile?

I have tried everything I can think of but can not solve this. I would sooo much appreciate any help with the following: I am using Drupal 7., latest Version. For displaying user details, I am using ...
2
votes
0answers
27 views

Permission issue: users can´t create content from certain computers

I am having a problem. Users from a particular rol have permissions to create content. When trying to create content from the office, we receive a message saying we have no permissions to do so. ...
2
votes
0answers
97 views

Access denied when I try to rebuild permissions as admin

I recently upgraded Drupal/OpenOutreach. Now, logged in as administrator (all possible permissions checked) I get a warning on every page to rebuild permissions on the site. But whenever I click to ...
2
votes
0answers
126 views

How to configure an editorial role with viewer-only unpublished node revision access in Workbench

I need to declare an editorial reviewer-type role that: will have access to view unpublished content, and does not have node edit permissions to the content types which the role does have the above ...
2
votes
0answers
236 views

How to make profile fields based on conditional role selection before account creation?

I'm using Drupal 7.23, autorole module and Profile2 to expand the user profile based on role. In my setup, each role has a different set of fields available to them after they sign up. What I'd like ...
2
votes
0answers
100 views

Let users change their Password in Drupal 6 WITHOUT having to type email in

On Drupal 6, When a user goes to 'edit' their account, they must also enter their email to be able to change the password. Is it possible to populate the email field with their stored address to avoid ...
2
votes
0answers
125 views

hook_cron() doesn't get any value from taxonomy_get_tree()

I am using the following code, but it doesn't work. function mymodule_cron() { // ... _update_user_categories($uid); // ... } function _update_user_categories($uid) { $...
2
votes
0answers
374 views

AJAX login/register login works only once

I'm using an AJAX login/register module. And there are two links: Login and Register. If I click login and then close it, I can click again and it will open. But if I click register, close it and ...
2
votes
0answers
48 views

Multi site avatars with shared users

I have a multi site setup with shared users on Drupal 7.22. Is there anyway to share user avatars amongst the sites?
2
votes
0answers
171 views

how to render profile2 type fields with default user registration form in custom block?

i installed profiel2 type module and make different profile types.Now i make a custom module and wants to display that profile type fields in custom block of that custom module. the main problem is ...
2
votes
0answers
133 views

Use LDAP objectClass to determine roles

I'm currently working on a portal site in D7 that allows access to several applications. I have created blocks that link to those applications and made them visible to certain Drupal-roles. My users ...