Roles allow defining what a user can do by assigning the relevant permissions to a role (e.g. editor) that is then assigned to users.

learn more… | top users | synonyms

0
votes
0answers
7 views

How do I amend roles on Administer Users by Role Module

Im using the Administer Users by Role module, i have a role set up as Publisher which has all the boxes ticked under the Administer Users by Role option under People/Permissions as shown in the ...
0
votes
0answers
26 views

Why only guests can submit a webform api form?

I use Drupal 7 and the webform API. I made a contact form which works pretty well when you enter the site as a guest, but for authenticated users it doesn't store the data after submitting without ...
3
votes
1answer
18 views

How to use the Rules module to send a privatemsg to users of a role in a group?

I am using the module Rules with Group (not Organic groups) as well as the Privatemsg module. I want to send an email to all users of a role that are in a group. I am able to send an email to all ...
0
votes
1answer
28 views

Migrate : user update resets user roles

Using the Migrate module, I created an import task that creates and updates user info from a csv file. The update is launched using drush. drush -l http://localhost.atrium.com mi Utilisateur --update ...
1
vote
1answer
42 views

Does a user role change remove their Profile2 fields? [closed]

Say I have a user role PendingArtist, and its Profile2 fields: skills and about me. How do I change the role of a user? And does the role change delete the PendingArtist's Profile2 fields? Edited: ...
1
vote
3answers
30 views

How to make a particular role user and their content not accessible/viewable to other users?

How do I make the user page (/user/uid) of a particular role (PendingFreelancer) and the content they create not accessible/viewable to other users?
1
vote
0answers
24 views

Is it possible to add a flag to a specific role user without using VIEW module?

I have downloaded profile2 module and I have created a specific role called artist. I also added some fields so to be shown only for the artist role users' on the registration form. Then I added a ...
2
votes
2answers
37 views

Request passphrase at user registration and automatically assign role to user [closed]

Is there a module that would allow us to request an optional predefined pass-phrase/password at user registration? So if the user fills in the pass-phrase he would be registered as a premium user or ...
4
votes
1answer
33 views

How to auto-assign a user a particular role when that user gets autocreated in a content form?

I need to auto-assign newly autocreated users from the content editing form a particular role. I created this new content-type : Music Track and created a new field - Artist for it. The Artist field ...
0
votes
1answer
31 views

Unpublish content when users role expires

I am using Ubercart Roles to automatically add a role to a user when he/she purchases a certain product. The role grants the user the permission to add a certain type of content. If this role expires ...
0
votes
1answer
64 views

Custom login for specific role [duplicate]

On a site there are some pages from a Content-type. Some of those pages (for the Belgium language only) need to be only accessible for Dokters. So when you try to reach the URL of one of those pages ...
0
votes
0answers
6 views

How to set webform to show previous submissions to users?

I've got a webform I'm maintaining, and I'm not sure how to expose or suppress the "View Previous Submissions" link on a per=role basis. The previous submissions link is visible to the admin, but it's ...
0
votes
1answer
34 views

How do I delete content (nodes) that a user no longer has the right to create?

Suppose a user of my site has had the right (the correct role with sufficient permissions) to create content of a certain type. If the right (role) is taken away from them, how could I make the users ...
1
vote
2answers
26 views

user cannot edit the page

I have given the marketing role the 'create new', 'edit own' and 'delete own' permission for the Article content type however when I log in with that account the 'edit' button doesn't appear on the ...
4
votes
3answers
41 views

Display particular Image Style for image based on Role of User?

Using ImageCache Actions there are 2 different Image Styles - e.g. S1 and S2. What needs to happen: User A has Role Y and when s/he views a node/user profile should always be presented with S1 ...
1
vote
1answer
23 views

How to insert user table [closed]

I would like to know how I can show registered users in a table with profile pictures like this site has. I would like to make this kind of site where actors can make a profile so they are put in a ...
4
votes
5answers
100 views

How to redirect a user to a personal area of page once logged in?

I want to allow users to login to their area 'personal' and view their uploaded images/posts (basically creating an instance of the page) which is different to every user that logs in to my website ...
1
vote
1answer
21 views

Is it possible to control a User's Role based on their Email Address?

Currently I am emailed everytime time an employee at my company needs their account role upgraded to 'Authenticated' to 'Employee', any suggestions on a way to automate that process? Thanks!
1
vote
1answer
24 views

Unauthorised users to view homepage without menu

I have installed the Front Page module on my site. I want to show visitors (not-logged in users) to see the same homepage as logged in users but without the navigational bar. I have used re-direct ...
1
vote
0answers
12 views

Temporary add role by token for a particular page to anonymous user

I have a specific task: I need to give a temporary access to particular unpublished nodes for anonymous users using access token. Anonymous is a key feature, so I can't create a limited user account ...
7
votes
1answer
91 views

How do I create a role programmatically?

How do I create a role programmatically? What am I doing wrong here? $role = \Drupal\user\Entity\Role::create(['id' => 'client', 'name' => 'Client']); $role->save();
0
votes
1answer
26 views

Custom VBO Action only works when enqueued (Adding User Role and Organic Group)

I wrote a custom module to add a VBO action that allows an Admin of a group to search the sites users, add them to their list (adds a role to the select users to get them on the list) and then allows ...
0
votes
1answer
16 views

Drupal Migrate - Assign Roles

I'm creating a Migration from our old website (non-Drupal) to our new Drupal website. On our old website, roles and role assignments were kept in 2 seperate tables. So far, I've written a simple ...
1
vote
1answer
20 views

Profile2 not editable for new users

I have two different profile2 profiles, the usual stuff. I just found out that creating new profiles of type a makes it impossible for the user to edit his profile. How it should be: The user ...
1
vote
1answer
58 views

How to redirect users to different forms depending on their role? [closed]

I'm trying to set up a site, where people with different roles (teacher/librarian/parent) can attend different kinds of events. Users can fill out a short registration form (name, e-mail, password, ...
0
votes
1answer
25 views

Select users from role

I have a certain content type in which I have a user entity reference select list that is invisible to users/editors. The idea is that the creator of the request has to choose a role of employees to ...
0
votes
3answers
40 views

How to give to the users the opportunity to change role as desired

As the title says, I would give to members a way to choose their own role as required via radio buttons in their profile page. Any suggestion?
0
votes
2answers
39 views

Select users that do have certain roles and do not have others [closed]

I need some help with my SQL in that I want to get all users with a certain role that do have another role. SELECT distinct users.uid, users.name, users.mail FROM users AS users, users_roles AS ur ...
-1
votes
1answer
28 views

Can two profile types be created with one role? [closed]

I have created two profile types Self Employee and Salaried Employee for the role Employee. I want to present these profile forms inside the user account edit form. For that, I'm using the Account ...
1
vote
4answers
87 views

People created by non-administrator role are not allowed to edit their content [closed]

I created a role called site manager. This role is allowed to create new users. The problem is that users created by this user are not allowed to edit their contents. The Access denied is reported. ...
0
votes
0answers
25 views

Table of users: How do I sort by role?

I have a user view set as an HTML table with the users' roles as one column. That column cannot be sortable, presumably because there can be multiple values in it. In my case, each user only has one ...
0
votes
0answers
50 views

All content types missing for users other than UID#1

I am hoping that someone can help me. I run a network of Drupal websites. They share the same code, but have different databases for each website. This week, one of the websites began having a ...
0
votes
1answer
28 views

Cannot figure out role-based pricing rule for custom Product Display/Variation in Commerce Kickstart

After working thru the Commerce tutorial and understanding roles, I thought it would be straightforward to set up a pricing rule based on user role, but I cannot seem to build the correct "Action" in ...
0
votes
1answer
13 views

Create a Login Role in order to view unpublished content

I need to create a role where an authenticated user can log in and see pages that were unpublished to the outside world. Is there documentation that explains the best way to set this up? Any ...
0
votes
1answer
30 views

When creating a view based on order products in ubercart, only people with access to all orders can see it

I've created a view based on order products in ubercart, but only those with admin role, who have permissions to see all orders can see the view. Now this is problematic, as the view is a most ...
1
vote
0answers
41 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.
0
votes
0answers
18 views

how to create a page for a role and give a page input for certain field in content type?

I have some content types Product and Store. And a user role for Shopkeeper. Whenever a shopkeeper logs in, he must be redirected to a specific page with a specific field of content type where they ...
0
votes
2answers
19 views

How to create display page depending on role?

I have a role of shopkeeper who is able to update the product info. But I want to create a different page for specific role of user. How to do this
0
votes
1answer
19 views

How to set user search and filter preference on account registration

I'm bulding a dating site, and I want users to have default search and filtering capabilities. The field in question is gender. I want users to be able to choose default search parameter to male or ...
1
vote
2answers
35 views

Edit access by checking the field?

Is it possible to check the privileges for a particular field? For example, I have a field in the material field_access associated with the user who accepts an ID of the user. How to check access to ...
1
vote
0answers
16 views

User profile / User roles question

I have setup a website for three choirs in different age groups: Adults (18y and up) Adolescents (12-18y) Children (8-12y) Some members are related (parent-child-sibling), others are not. I've ...
1
vote
1answer
22 views

How to make users with administrator role member of all organic groups?

Is there a way to make all administrator users a member of all the Organic Groups? For the moment, if an administrator creates an organic group, the only one who will be member of the newly created ...
0
votes
1answer
18 views

Admin approval notification based on role choose by user on registration form?

I need to set admin approval for a particular role. I am using auto assign module to provide user to choose role on registration form. authenticated users: Do not need admin approval ...
0
votes
0answers
25 views

How to pre-define role for OpenID user before they log in

After a new user signs in by authenticating with the third party, they need to be assigned a role by the site admin (shouldn't see any sensitive content before access is manually given). This delay is ...
0
votes
2answers
27 views

How do I assign a role after user clicks a link?

I'm trying to get a behavior when a link is clicked, a role is applied to a user. My use case is to allow a registred user to step into another type of user. Example is airbnb.com. You are a renter ...
1
vote
1answer
48 views

How to use the Rules module to attribute a new user role after a product was bought?

I use these modules: Drupal Commerce, Rules, Node option premium. My question: with Rules, how attribute a new user role, when the product was bought, and when this product is a premium content ? So ...
0
votes
1answer
30 views

Search API Views Indexed Node Filter by Author Role

I have Search API installed, and have indexed all of my nodes. The nodes all have a different Author, and the Authors have roles "Free user", and "Business User". I only want the nodes belonging to ...
1
vote
3answers
34 views

How to configure role to edit only specific nodes by field?

I have a content type named "Event". I created a field named "Type" so I may create different kinds of Events (eg. Courses, Lectures, Conferences). The problem is that each type of Event is ...
0
votes
0answers
57 views

hook_form_alter and hook_user_presave are not working in a production evironment

I observe very strange behavior of my D7 (7.39) prod site. I have dev environmnet (7.39) where I use hook_form_alterto change form submit function. I copied code from user module and added some custom ...
0
votes
1answer
19 views

Authenticated user can't download audio, even though has permission

I have an embedded audio player using HTML5 which is displayed on my guitar lessons site. I have a private file system set up. When I am logged in I can play the audio files fine. If I register as a ...