The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [users]

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

1,671 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
155 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 ...
5
votes
1answer
431 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
0answers
527 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 ...
4
votes
1answer
651 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
979 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
1answer
424 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
383 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
306 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
538 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
80 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. ...
3
votes
0answers
128 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
269 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
55 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
1answer
82 views

List users/roles who has access to node

Asked this question on Drupal.org also, but i think this place is going faster and better :-) I've installed Content Access and made a view for a Content Type. In the table, users can see content ...
3
votes
0answers
283 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
340 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
105 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
52 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
30 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
187 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
42 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
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
1answer
764 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
52 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
210 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
363 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
686 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
360 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
1answer
364 views

Naming conventions for Drupal permissions

Looking through the Drupal coding conventions http://drupal.org/coding-standards#naming I have seen module, variable, function, and many other areas but not for permission names. Are there any ...
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
270 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
332 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
304 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; ...
3
votes
2answers
1k views

Cannot access Administration > People page

I cannot access the People page. There is no error message. If I click on People in the menu bar, the Administration home page is shown. The other Administration pages are accessible. Similarly, ...
2
votes
0answers
88 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
31 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
257 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
250 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
2answers
132 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
691 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
263 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 frontpage (they can't access to nodes that are not promoted) and hook_node_access does not seems to be called for anonymous ...
2
votes
0answers
78 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
97 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
70 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 ...