Skip to main content

Questions tagged [users]

Use it for question about the user entity. Don't use it for a generic question about, for example, what users can do on a site.

1,623 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
560 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 ...
Dubya's user avatar
  • 111
4 votes
0 answers
372 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/...
ummdorian's user avatar
  • 527
4 votes
0 answers
321 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 ...
usethe23's user avatar
  • 661
4 votes
1 answer
2k views

Is there a drush command to set permissions to true on ALL modules for administrator?

I'm getting tired of having to go in the backend and click on some new module's permissions so that I can use them... Is there a drush command to enable permissions to true on ALL modules in on shot? ...
Bruno  Vincent's user avatar
4 votes
3 answers
2k 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 ...
egggsaplenty's user avatar
4 votes
0 answers
446 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 ...
Paden Pierry's user avatar
4 votes
1 answer
730 views

Can't login using OpenId (core) and Google profile

I'm using the OpenId module (included in core v7) but can't link an OpenId to an existing account. Every time I try to add it an error occurs: Sorry, that is not a valid OpenID. Ensure you have ...
Bart's user avatar
  • 6,934
4 votes
2 answers
335 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?
Alexander Kim's user avatar
4 votes
2 answers
647 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'...
user avatar
3 votes
0 answers
238 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 ...
Stephen Palmstrom's user avatar
3 votes
0 answers
395 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 ...
nizz0k's user avatar
  • 1,172
3 votes
1 answer
643 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 ...
José Trindade's user avatar
3 votes
0 answers
587 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 ...
Malabya Tewari's user avatar
3 votes
0 answers
425 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 ...
user3532275's user avatar
3 votes
2 answers
875 views

Flood control IP bypass whitelist

I am utilising Services to open up some login resources on my site and as a result if multiple users incorrectly try to sign in the entire external website will be blocked because of flood control. ...
Key's user avatar
  • 304
3 votes
3 answers
150 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 ...
hockey2112's user avatar
  • 1,244
3 votes
1 answer
67 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 ...
Chad's user avatar
  • 31
3 votes
1 answer
33 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 ...
user15837's user avatar
  • 479
3 votes
1 answer
209 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 ...
Edwige's user avatar
  • 31
3 votes
3 answers
54 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 ...
Dimitri Wilhelm's user avatar
3 votes
1 answer
47 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 ...
jae.phoenix's user avatar
3 votes
1 answer
457 views

Why does "Cancel People Account" not work?

I have Drupal 7 with Devel installed running over PHP internal server and MySQL. All user operations work correctly except Admin>People>Cancel Account operation. This leads to the overlay Add User ...
Robert Onslow's user avatar
3 votes
0 answers
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 ...
deinqwertz's user avatar
3 votes
0 answers
896 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 ...
Pontus Nilsson's user avatar
3 votes
1 answer
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 ...
Patrick Kenny's user avatar
3 votes
0 answers
222 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 ...
John Speers's user avatar
3 votes
0 answers
98 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 ...
Jonathan Sibley's user avatar
3 votes
2 answers
498 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 ...
Surendra Prasad's user avatar
3 votes
1 answer
709 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 ...
Rahmatullah's user avatar
3 votes
2 answers
441 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?
user avatar
3 votes
0 answers
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 ...
Turion's user avatar
  • 466
3 votes
0 answers
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 ...
Necronet's user avatar
  • 227
3 votes
0 answers
273 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 ...
Ken's user avatar
  • 31
3 votes
0 answers
337 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 ...
jeroen's user avatar
  • 864
3 votes
1 answer
310 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; ...
samwell's user avatar
  • 221
2 votes
0 answers
121 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 ...
Stef Van Looveren's user avatar
2 votes
0 answers
41 views

Respecting permissions in getStorage('taxonomy_term')?

Edit: I just realized that Taxonomy permissions are not native to Drupal core, they are the result of a module we activated: Permissions by Term. (This will explain why they are not being respected by ...
Neil Hillman's user avatar
2 votes
0 answers
224 views

How can I limit flagging per user?

Node compare is awesome plugin but it's just only in D7. I'm using Drupal 8. I have a views page which integrated with flag(compare it) and flipped table module to compare contents. It has limit to ...
iberx's user avatar
  • 25
2 votes
0 answers
208 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 ...
Kevin's user avatar
  • 27.9k
2 votes
1 answer
49 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) { ...
Aporie's user avatar
  • 365
2 votes
0 answers
397 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 ...
nizz0k's user avatar
  • 1,172
2 votes
0 answers
134 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. ...
shaghayegh jamei's user avatar
2 votes
2 answers
147 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 ...
user avatar
2 votes
0 answers
1k 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 ...
Rajesh Vishwakarma's user avatar
2 votes
1 answer
1k 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! I ...
Ismini's user avatar
  • 913
2 votes
1 answer
224 views

Redirect After Creating New Taxonomy Term

I am new to Drupal. I am trying to figure out if it is possible to redirect back to the Taxonomy page right after adding the new vocabulary term instead of being directed to the manage page of the ...
Zen's user avatar
  • 21
2 votes
0 answers
82 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 ...
jensjensen's user avatar
2 votes
1 answer
149 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'; ...
Monkeybrain's user avatar
2 votes
1 answer
83 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 ...
seyi's user avatar
  • 621
2 votes
0 answers
57 views

How to provide permissions to edit a Page Manager Page?

For our Drupal 7 site, I am tasked with creating a role for a non-developer end-user in our organization to manage a page we have that is provided by the Page Manager. By provided by, I mean that this ...
user1359's user avatar
  • 3,919

1
2 3 4 5
33