Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [group]

Use it for questions related to the Group module, not the Organic Groups module.

0
votes
1answer
19 views

How to use the YML structure of routes to control access to Group Content

I am using the Group module and would like to leverage each Group's permissions in my module's yml files. I have a module.permissions.yml with something like tam_api.group_gid_members_uid: path: ...
0
votes
1answer
57 views

Programmatically get the results of a view

Using the group module in D8, I have the below view with machine name: group_members_per_group Machine Name of: (Member account) User: Full Name is: field_user_full_name (Member account) User: ...
-1
votes
0answers
58 views

Performance issue while loop through all groups and create node for each

I wrote the below code in the .module file of my custom module which is scheduled to run once a day using cron. I have tested the code with only two groups available, and noticed a performance issue ...
1
vote
1answer
24 views

How to display articles based on group combinations of various group types?

I looked at the group module. Defining permissions based on user and entity memberships would suit my needs very well, but sometimes I would need a combination of various group memberships to define ...
0
votes
0answers
14 views

How to “always relate” nodes to group

In OG in D7, there was a field that was set to say this node belongs to group x. With the Group module in D8, if a user creates a node through the normal /node/add/page link, it will not be linked ...
0
votes
0answers
16 views

How to add a page referrer query parameter to a content create link

I am using the Open Social distribution which uses 'group content create blocks' to show a link where content can be created in which the current group (from the group context) is prepopulated in the ...
0
votes
0answers
13 views

How to make the group menu tabs also visible on group content display

I use the Open Social distribution, which uses the Group module. Within the context of a group (through the group ID which is available in the URL) different views pages show the group menu, which ...
0
votes
2answers
35 views

How are global roles synced with group roles?

How are global roles synced with group roles in the Drupal 8 group module? I expect that the module would either: Create a group roles in each group type for each global role and/or one of the ...
0
votes
1answer
63 views

Organic Groups vs Group - on D7 vs D8?

I've done some research on this question, posted it here without any feedback, and have left messages for OG owner (amitaibu) without any response, so hopefully I can solicit useful feedback here. I'...
0
votes
1answer
21 views

Relate Content to a Group feature when creating a node outside a group

In my drupal site, I'm using the Group module. My problem: I created a regular Drupal node type, let's call it userpost I created a group type called "usergroup" The content type "userpost" is ...
2
votes
1answer
56 views

Use node edit form layout for other entity types

The node edit form got a nice overhaul for Drupal 8's default admin theme, whereby a lot of the metadata fields like Revisions, Meta Tags, URL Aliases, Publish status, Promote status, etc are moved ...
0
votes
1answer
26 views

Groups and Private File Visibiility

I have created a content type Agenda - the body is paragraphs - there are two types: (1) Text and public files and (2) Private Files. The fields work properly - Anonymous cannot see Private Files. ...
2
votes
2answers
34 views

How to translate Groups in a multilingual site?

I have created a new grouptype and added some fields to have a "site". And then created a new group with this grouptype. I edited the overview site with some information. Now I would like to translate ...
1
vote
1answer
44 views

How to create entity relation of counselor to client?

I'm trying to create a relation in D8 between a counselor and clients. The counselor would have to record counseling hours for each client. I've looked at the group module, even building the ...
0
votes
0answers
55 views

How to get the group entity for automatic entity label when creating nodes?

When creating a new node, you can assign it a group (group project). I need the group field's value to put into my node title. The problem is, there is no token to use within AEL for the group and ...
1
vote
1answer
46 views

View Members Tab of a Group

So I've had my first taste of Drupal Group, and it looks really promising so far. Now I may be missing something totally, but if my user (testuser1) is a member of a group with 2 other members, why ...
1
vote
1answer
215 views

Filter a view by the Group ID of the current logged in user

I have been looking for an answer for 3 days with no success. Looks like this is a common requirement among plenty of Drupal 8 projects with not a single answer accross the internet about how is ...
0
votes
0answers
27 views

REST request in Group content

Group module is a very helpful module for content-sharing site, especially when dealing with groups and permission. But I dont see any good documentation what is the proper way of sending a successful ...
0
votes
1answer
24 views

Display a view block on multiple pages

I have a block that I want to display on /group/*. That is working, but it is also displaying the block on /group/*/editwhich is pretty annoying and unwanted. Is there a way to restrict that ? ...
0
votes
1answer
116 views

How to insert the title of the group in a message?

I created a custom module using the example in: https://www.drupal.org/project/message When a node is created, it is associated with a group: https://www.drupal.org/project/group Here is my module....
1
vote
2answers
179 views

How to get the id of a group when using the Group module?

I'm using the Group module. How can I get the id of a group whose a user is a member (I have the user id)?
0
votes
0answers
20 views

HTML Around Group Title

When I create a group, the HTML around the group title isn't parsed. Even if I change those tags, it isn't parsed. Is there some filter I'm unsure of the whole page is running through or is this some ...
1
vote
0answers
53 views

Can a view show all the content of groups to which a user has access?

This may have been answered before, but I am not sure how to search or ask for it. My Group knowledge is very limited, and I am not seeing a way to do this in Views at a glance. When a user logs in ...
0
votes
0answers
10 views

Profiles and group integration

Iam Using Group module drupal 8 together with profile module. profile module does not add any permissions for profile creation for the group members. I need to restrict users of certain roles from ...
1
vote
1answer
64 views

Select groups to relate the node to directly in the node creation form

An admin who wants to relate a node to a group can go to the group and then create a node from there (/group/{id}/node/create) . The node is then assigned to the group. Or she can assign a already ...
0
votes
0answers
59 views

Mixed entity types. How to create a view of nodes and groups?

I want to create of view of nodes and of groups (group module). Being different entity types I am not sure if this possible. Is there a method by which this could be done? There is no specific ...
0
votes
0answers
20 views

Azure AD role mapping

I intend to use openid_connect_windows_aad which connects correctly to AAD and I can get user claims, however I miss the role mapping feature something similar to ldap module. Has this feature been ...
1
vote
1answer
339 views

Custom route using access check error with arguments

I have a custom route that needs to check if a user can create a certain group_node:article content inside a group (from the group module 8.x-1.0-rc2). The setting is as follows: mymod.routing.yml ...
3
votes
1answer
358 views

How to add custom entities to group types?

I'd like to add my custom content entity to my group types, just like the module's "group node" plugin does already with nodes bundles. Has anyone done this? There does not seem to be much progress ...
0
votes
0answers
34 views

Performance of group module with thousands of groups

I am planning to make use of the group module and let site users create and maintain their own groups. This will lead to thousands of groups. I am wondering whether site performance would become a ...
0
votes
1answer
42 views

How to send an email once a new member is invited using the Group module?

I am using the Group module on a Drupal 7 project. I would like the system to send an email notification once a new member is invited. I'm assuming I could use the Rules module to perform this task, ...
1
vote
1answer
253 views

Show a different view mode depending on role

Using the Group module, when a user views a group, I want to use a different view mode depending on whether the user is a member of the group or not. Conceptually, this is almost identical to showing ...
0
votes
1answer
48 views

Group Module: Join & Remove users from user account/profile 2?

I added an entityreference to the user's Account so users can select what group they want to join (checkboxes). They check it and via a rule, it automatically adds them to that group. I did this for ...
0
votes
1answer
105 views

Redirection after adding new groups and gnodes using group module

I am using Group module and Drupal 8. After adding a new group, the page will be redirected to the corresponding group page(ie. /group/5) but I want to change it to be the group edit page (ie. /group/...
0
votes
1answer
86 views

Add Field as Entity in Group Module

The group module is an alternative to the og module. The og module allows you to assign permissions to fields per group. I would like to be able to do the same thing with the group module. It ...
3
votes
1answer
47 views

How are access permissions prioritized when multiple modules implement them?

I have the Group module setup where I only allow view permission for group content to group members, so I have closed groups. But additionally, I want groups to also make some content public to non-...
1
vote
1answer
297 views

D8 - Remove member from Group programmatically

Using Group module for D8. What is/are the function(s) to remove a user from a group using the User ID and the Group ID?
1
vote
0answers
82 views

Contextual filter with group ID and group name

I have a page view which is currently using a group id as a contextual filter. This is working. However, I am trying to achieve a 'friendly url', so the url should contain the group name, rather than ...
0
votes
1answer
26 views

Schema for group module

I have installed this module and I assume that this works not only in the regular content type but also in the group module. I was expecting that after enabling the module there is an option to map my ...
1
vote
1answer
94 views

How to restrict group node access to a user/member of an group?

I am using the Group module and I have created a group called "Group-Y" and group type "Group-type-Y". I also defined a group role name "Admin". Added an member with role "Admin". I have checked this ...
1
vote
1answer
63 views

How to show new nodes in a Group node view for users who are not a Group member?

In my Drupal 8, Defined New User Role: Manager Added one user into the role. I have created a group "Group-x" with corresponding group type "Group-Type-x". I have updated the permission(view, edit,...
0
votes
1answer
247 views

Why is migration lookup failing during synchronisation of Group entities?

On the basis of an RSS feed, I am required to create Group entities and Users out of the feed's items. Each item contains sufficient data: <item> <id>123</id> <title>An ...
1
vote
1answer
261 views

Grouping content types in group nodes

I have created 2 different groups and updated content(basic pages & article) using group module in my drupal 8 project. Currently it is listed in nodes tab of group. I have used an view module ...
1
vote
0answers
36 views

View of groups available to join

My site has different types of groups. Some allow registered users to join, others are by invite only and the existence of the group is not publicised. I want to make a view (or block) of groups that ...
1
vote
1answer
174 views

Restricting “view content” to members of a group

I would like to make a site with content that anonymous users can read, and private content that only group members can read. How do I achieve this? I have installed Group, but any group content I ...
1
vote
2answers
89 views

Display content by specific groups of users

Is it possible to display content by a group of authors without using a group module? I like the group module, but it's much more complex and robust than what I need it for. Synopsis: We need to ...
0
votes
0answers
167 views

Create public or private nodes in groups

1) On my drupal 8 site, I use the "Group" and "Flags" modules. How do I create public or private nodes in groups? if the node is private, it is displayed only to the member of the group. if a node ...
1
vote
2answers
876 views

Adding members to a group dynamically in Drupal 8

I am trying add members to a group programmatically using Groups module in Drupal 8, and I am doing the following to achieve this: use Drupal\Core\Entity\ContentEntityBase; $roles = array('test_role')...
1
vote
3answers
1k views

How to get group ids by ids of elements of group content?

I use the Group module and I have created several groups and assigned several nodes as content of these groups. For example, I know id of some node. How can I figure out which groups contain this ...
2
votes
0answers
94 views

How to show the actual node on a group-content page when using the Group module?

Creating a new group-content in Group module on Drupal 8 generates a normal node without any "live" context to the group. So viewing this node does not allow the group-actions block to work. If you ...