ganncamp
(G Ann Campbell)
March 17, 2025, 3:11pm
1
I’ve set up an automation with the ‘Schedule a PM with Data Explorer ’ results script.
Despite the field label being “Send to User, Group or Email *”
Colin and I received the PM, but my contact in the JVM group did not.
I’m not finding anything about this in the logs.
Note that another user reported in Sept 23 that sending to groups didn’t work. I’m starting a new thread tho because that thread says “doesn’t appear to support” and based on today’s UI, the automation appears intended to support
2 Likes
ganncamp
(G Ann Campbell)
March 17, 2025, 3:18pm
2
It seems that sending to an email address does work, so I subbed-in the group’s email alias.
1 Like
ganncamp
(G Ann Campbell)
March 17, 2025, 5:58pm
6
I’ve just manually set a PM to a small group that I’m in.
I *did not check * ‘Send an individual personal message to each recipient’
And… AFAICT, no one received it.
So I’m guessing this is the problem.
Edit: it seems to have gone to the group-as-an-entity , rather than to any of the group members
2 Likes
ganncamp
(G Ann Campbell)
March 17, 2025, 6:58pm
7
Here we go:
def self.filter_recipients_by_query_access(recipients, query)
users = User.where(username: recipients)
groups = Group.where(name: recipients)
emails = recipients - users.pluck(:username) - groups.pluck(:name)
result = []
users.each do |user|
result << [user.username, "username"] if Guardian.new(user).user_can_access_query?(query)
end
groups.each do |group|
if group.id == Group::AUTO_GROUPS[:admins] || query.query_groups.exists?(group_id: group.id)
result << [group.name, "group_name"]
end
end
emails.each { |email| result << [email, "email"] if Email.is_valid?(email) }
result
end
end
I thought that since all the users in group squad
were also in group company
, and group company
has explicit access to the report that that would work.
But groups don’t get expanded into users (and there’s no option in the UI to turn that on)
2 Likes
davidb
(David B)
March 18, 2025, 7:22am
9
Hi, thank you for sharing details of this issue.
Can you check the group setting value:
Group → Manage → Interaction → Who can message this group?
If you can share the value for the JVM group, it will help me to debug this issue.
I will share this feedback with the team to see if we can improve this feature.
3 Likes
ganncamp
(G Ann Campbell)
March 18, 2025, 11:34am
10
On my group I see a Messages tab.
Even as a global admin, I don’t see that on the JVM group:
So I added myself to the group, thinking maybe that was why I didn’t see it.
Still no messages tab.
Then I checked the group’s ‘interaction’ settings, and yup, messaging was set to Nobody
So I updated that to ‘Group members, moderators and admins’
But the Messages tab still doesn’t appear for the group, no matter how many times I refresh the page.
The Community Managers messaging is set to Everybody, but I don’t want to do that for this group.
1 Like