Questions tagged [users]
One of the most important entities Drupal uses is the user entity.
1,676
questions with no upvoted or accepted answers
7
votes
2answers
2k views
How to setup event registration and paypal payment?
We have events and we take registrations for them. Entity Registration module is installed for that purpose and it's working great. Now, since those events are paid events, we want to implement PayPal ...
5
votes
1answer
461 views
Automated login with LDAP always returns error
I have successfully setup LDAP module to authenticate users (and create new users). This is done through manual login form. Now I'm trying to enable automated single sign-on, but with no luck.
I ...
5
votes
3answers
2k views
Role Hierarchy and Management of Assigned Users
I need to set up a role hierarchy like this:
Super Admin - Full permissions, can manage all users and content
Regional Manager - can manage only his/her own Store Managers;
cannot manage another ...
4
votes
1answer
662 views
Restrict Profile2 Profile Type on Role
I would like to do a few things:
Limit the profile type a user has based on their role. When/if they change roles, their profile type would change and any fields that were the same are brought ...
4
votes
2answers
2k views
Give a role permission to add and edit their terms in a taxonomy
In Drupal 7 I am trying to give users the ability to add terms to a taxonomy and then edit only the terms they have created.
I'm using the Taxonomy access fix module to give users permission to add ...
4
votes
1answer
980 views
Using Entity reference + Views to create members select list
How can I use VIEWS + ENTITY REFERENCE to get list of active members specific to the CURRENT GROUP [created via organic groups].
I have created a view that list active members belonging to the group....
4
votes
3answers
1k views
Redirecting a registration link in logintoboggan
I've got a register link and a log in link that is augmented by logintoboggan. All I want to do is redirect the register link from the user account form page to a new page I've just made. It seems ...
4
votes
1answer
430 views
Node access user reference
Main Modules:
Node access user reference
Node access node reference
Flags
Rules
I'm trying to give access to a user that clicks on a Join Project flag link.
I have a User Reference Field attached ...
4
votes
1answer
385 views
How to limit what is available for a role in Administration menu ?
I am using Drupal 7 and installed the Administration menu. It works fine and I am really happy with it but after creating a new role, and also creating a new user for that role, he seems to have the ...
4
votes
1answer
1k views
How to make a calendar tab for every user showing user's events?
I followed the tutorial Calendars for Organic Groups - A simple tutorial for D6, and successfully created a calendar for every group in my site showing its events. I also managed to show the calendar ...
4
votes
2answers
315 views
Access denied when I try to delete the user menu
How can I delete a user menu in Drupal 7? It throws me an access denied error, though I am logged in as user #1. What's wrong with it?
4
votes
2answers
564 views
How to set Permission based on roles for Views Data Export
Using views data export module, I set the permission for different roles in the Data Export in Views like:
But I can still see the Export button for all users in front page. However if the role doesn'...
3
votes
0answers
38 views
How can you require users to change their passwords on first login after migration?
We are planning to migrate users from another CMS to Drupal. We can migrate usernames, but not passwords as the encryption is different. So we shall have to assign passwords to them. Earlier versions ...
3
votes
1answer
406 views
Is there a way to add node grants to anonymous users?
I want anonymous users to be able to access nodes that are promoted to the front page. (They can't access to nodes that are not promoted.) It seems hook_node_access() isn't seem called for anonymous ...
3
votes
0answers
172 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/...
3
votes
0answers
275 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
563 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
388 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
3answers
113 views
How to control content access based on value of a List (text) field in user profile?
When my users sign up, they must choose whether they are a Man or a Woman, via a List (text) field. If a user chooses "Man", they should only be able to see Woman users on the site. Likewise, if a ...
3
votes
1answer
56 views
Drupal View Show Webforms NOT Submitted By Logged In User
I'm hoping someone can help me out with this because I have been stuck on this for days...
I have a bunch of webforms that each user needs to submit. I figured out how to show a view of the webforms ...
3
votes
1answer
31 views
How to restrict tagged content based on user?
I'm using drupal 7.39, but I don't know how to restrict users to access some specific content.
I have created a content type called person. Then I have created 5 nodes, like so:
2 nodes tagged with ...
3
votes
1answer
197 views
How to add more information about authors with the Bibliography module?
We are setting up a bibliography for old and very rare resources with Drupal 7 and the Bibliography module. We need to have more information about authors (picture, biography, nationality). We have ...
3
votes
3answers
44 views
Adding own variables on user registration to created user
I want to add additional informations to a user on registration.
I have added the fields accountID and clanID to the user .
On registration i load these information according to his entered name from ...
3
votes
1answer
44 views
User Edit Page for different elements
I want to customize the user edit page. I want to separate the elements (eg. user password, user picture, user email) and put them each on a separate edit page. I tried the panels module, but that ...
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
819 views
How to translate a custom user role name?
I've added a few custom user roles with english names. I need to translate them to other languages now. What is the best way to do this?
According to the user_roles function only "core provided" role ...
3
votes
1answer
53 views
How can I show two users what taxonomy terms they have selected in common?
I have a taxonomy vocabulary, Hobbies. Users can select their hobbies from a list of about 300. Many users select a few dozen hobbies, which makes for an extremely long list.
What I'd like to do is ...
3
votes
0answers
215 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
96 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
2answers
413 views
How to add a new user badge after earning a certain number of user points?
I'm using the User Badges and User Points modules. I want that when a user earns a certain number of user points, the user's old badge is replaced by a new one. For this, I have already created a rule ...
3
votes
1answer
1k views
Permission rebuild fail
My Drupal 7 site is upgraded from Drupal 6. When I install the Domain Access (not installed with Drupal 6) module, I need to rebuild permissions.
I tried rebuilding them from the administrative pages,...
3
votes
1answer
689 views
view access permission
I have a problem with view permission, when I make a view in drupal 7 there is an option "access" when I specify the option eg:"view published content" all users that has the role of published content ...
3
votes
1answer
373 views
How to add html tags to account setting emails?
I am working on a project where I need to add some custom headers to the email which we send to the user on registration. Is there a module which support this functionality?
3
votes
0answers
220 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
271 views
Does a user profile using profile2 work with the metatags module?
I am using the profile2 module. I am looking for a way to set my meta tags based on user profile type. For example, I have teachers, students, and parents as profile types and each of their profiles ...
3
votes
0answers
333 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 ...
3
votes
1answer
306 views
How to assign a section to a specific node with Workbench?
I'm creating nodes using a custom modules
$node = new stdClass();
$node->type = $link['content_type'];
node_object_prepare($node);
$node->uid = $user->uid;
$node->name = $user->name;
...
2
votes
0answers
47 views
How to access PrivateTempStore data when user registers
I have a form for anonymous user some steps before the user registers. I save the data in the PrivateTempStore. A final step is to register and log in. But when a user is logged in, the ...
2
votes
0answers
150 views
Working with hook_node_access_grants
I am currently working with Permission by Term to set simple access control on two node types with terms.
As noted here, I believe I found a bug where the access record isn't written the first time ...
2
votes
1answer
35 views
Sending user edit form to user profile
I'm trying to send user edit page to the user profile page (/user), so I can get user profile informations and user edit form on the same page.
function hook_preprocess_user_profile(&$vars) {
...
2
votes
0answers
326 views
How to create and login external users authenticated against a third-party Oauth2 server?
I'm working on an SSO implementation where I have to give access to a Drupal 7 site to external users authorized/authenticated by Oauth2. I'm struggling with the process of taking the supplied user ...
2
votes
0answers
322 views
How to implement SSO with Oauth2 to login users from another site?
So, I apologize in advance as I'm only now getting familiar with all the Oauth2 terminology.
I have an existing Drupal 7 site with its own active user base. The organization I support has recently ...
2
votes
0answers
90 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
2answers
137 views
Can not display user information?
I want to display on the user account page the following information :
the status of the account.
the roles attached to the accounts.
registered since the ...
last connection on ...
The view ...
2
votes
0answers
905 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
1answer
781 views
Alter existing routes doesn't work
I'm working on a D8 project trying to add custom access rules to some pages.
I want to restrict access to specific users based on their id.
I checked this and seems easy but I can't make it work!
...
2
votes
0answers
80 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
1answer
116 views
Custom access callbacks for user entities not being called
I'm trying to implement some custom access control for user entities, in Drupal 7.
I've used hook_entity_info_alter to set
$entity_info['user']['access callback'] = 'MYMODULE_user_access_callback';
...
2
votes
1answer
73 views
How to insert drupal username and email fields into create booking form?
Am using the Booking Time slot module. The module introduces a "Booking entity".
I want to insert the default drupal 'username' and 'email' fields into the form used in creating a new booking, so ...