Automatically adding users to groups doesn't work all the time

groups

(Bas van Leeuwen) #1

Hi,

We have a few custom groups set up so that known customers and partners are automatically added to the groups “Customers” and “Partners” respectively.

This works sometimes, but not all times.

E.g. some users with name@companyABC.com are in the group Customers, some arent.

Logs don’t seem to contain anything relevant to this (other than Sidekiq repeatedly running out of memory and restarting all the time, but that seems to be the expected behaviour).
We are not running SSO, we are using OAuth signups

How can I start to debug this?

Thanks, Bas


(Jay Pfaffman) #2

Wild guess: does it have do do with case matching companyAbC.com?


(Bas van Leeuwen) #3

Good suggestion, but all the emails I see are lowercase


(Gerhard Schlager) #4

Were some of those users invited?


(Bas van Leeuwen) #5

Yes, the majority of them


(Bas van Leeuwen) #6

@gerhard is this feature not intended to work for invited users?


(Gerhard Schlager) #7

It should work for invited users as well. The problem is that some users ignore the activation email that is sent after they accept the invite. As a security precaution, users are only added to groups after they validate their email address.

(And yes, we know that the activation email isn’t really necessary when the invite was sent via email. We are planning to improve this.)


(Bas van Leeuwen) #8

Aha, that does explain a lot.
Unfortunate choice, but understandable :slight_smile:


(Gerhard Schlager) #10

Today I fixed a problem that prevented users from being added to groups when they change their email address. Maybe some of your users were affected by that too.