Questions tagged [user-groups]
The user-groups tag has no summary.
78 questions
1 vote
1 answer
42 views
How to move user from one group to another with GraphQL mutation
I am using Nextjs and GraphQL API of Craft CMS. I have a subscription system in my project. I want to move users from free to subscriber group after subscription. How can I do it with GraphQL mutation....
1 vote
1 answer
58 views
Set Field Layout for User Groups
Is it possible to assign a field layout to user groups in Craft CMS 5? The UserGroup class does not have a setFieldLayout method. Is there another way to achieve this?
1 vote
1 answer
62 views
Craft 3 / 4 CP: Restrict users to specific user groups in Users view
I need to restrict access to users (not entries) of say AdminGroupA to be able to access and manage users of UserGroupA in the Control Panel. Right now, the user AdminGroupA can browse all of the ...
1 vote
1 answer
88 views
permission to access users only on specific user group
I would like to ask if there is a permission to view and edit the users on specific user group? or is there any plugin to do that? example: I have user groups called "Class 1" and "...
2 votes
2 answers
343 views
Is there a way for a user to assign another user to a group on the frontend?
So, I'm trying to build a dashboard where the partner of the company I work for can edit users. And I want him to be able to have like a drop down to assign the user's group on the frontend. Is there ...
2 votes
1 answer
462 views
Add user to group based on registration form field
I'm trying to add my users to a group based on the option they select in a dropdown field. I feel like I'm close but so far - at the moment, it's not adding the new user to a group and it's clearing ...
0 votes
0 answers
118 views
access to specific settings in production
thanks for any advice in advance. I agree with craftcms that in production mode access to setting should be off limits. With that being said in the users tab on the dashboard I have not seen anywhere ...
2 votes
1 answer
248 views
Removing or hiding certain fields from the CP new entry for a specific user group
I'm trying to make some fields unavailable for a certain user group when they create or edit a new entry. These fields should only be available to admin users. I had implemented this by extending the ...
1 vote
1 answer
98 views
Best Approach to all unique groups of users to edit unique groups of entries in 1 channel
I've got a request to let front end users edit entries in 1 section, but only if the entries are related to their user group - so different users will have ability edit a different subset of entries ...
1 vote
1 answer
868 views
Query to find users who are in more than one user group
I'm working with a site that has a few thousand user accounts. With the exception of core accounts with CP access, each user account exists for the purpose of access to event URLs which eventually ...
1 vote
0 answers
82 views
Assign user to group available even though not allowed? (Craft v3)
Working my way through the CMS to learn in more detail I'm currently at the users / permissions parts of the CMS. Here I just bumped into the following thing I don't understand: I have a Users Group ...
1 vote
1 answer
440 views
How to assign a group to a user in PHP
The following doesn't assign an existing user to a group. I've confirmed that both the user and the group exist. Any ideas? $user = User::find()->username($username)->one(); $user->setGroups(...
1 vote
3 answers
1k views
Restrict viewing front end to specific group permissions
How can I restrict content frontend to specific user groups? There seems no sensible way to do this out of the box. For example group permissions in CP are all about CP - there is no view option. ...
1 vote
1 answer
247 views
Disable activation link email for a specific user group
I am developing a website which is having two user groups. The users of first user group will have self activation email with account activation link while second user group will be activated by admin ...
1 vote
2 answers
69 views
Show user group in CP user listing?
I want to scan my user list to see if anyone hasn't been assigned to a group. Is there a way to show user groups as a column at admin/users?