Duplicate entries on group_users


#1

Hi,
Not sure if this is a bug or a feature, but trying to add a user to a group twice using the API calls throws an exception
Is it possible to add a “ON DUPLICATE UPDATE” and just update the ‘updated_at’ column?
Thanks


(Jeff Atwood) #2

What is the actual exception?


(Rafael dos Santos Silva) #3

Won’t this add table bloat for no benefit?

Can’t you, check group membership before trying to add the user?


#4

either ignore the re addition, or update the updated_at time


(Sam Saffron) #5

hmmm… we are already doing this:

And also offer this:

So I am confused at why you would need this for normal use (which is SSO needing this kind of fancy behavior)

This is definitely a “feature req” for

@tgxworld how do you feel about this, should it be handled transparently or return an error?


#6

oh, but this is SSO, i’m talking about adding a user to group by using the API
so, if you try to call the API to add a certain user to the same group twice, you would get this error