If I understand your requirement correct, you don't actually want a trigger on groups, you want a trigger on some action which indicates some user should be added to a group. Something like upon the creation of a User perhaps? If that is correct in your scenario,you would need a trigger on the User object, and a little bit of Apex to insert a record in the Chatter Group (look at the CollaborationGroup object for where to insert)
If I understand your requirement correct, you don't actually want a trigger on groups, you want a trigger on some action which indicates some user should be added to a group. Something like upon the creation of a User perhaps? If that is correct in your scenario,you would need a trigger on the User object, and a little bit of Apex to insert a record in the Chatter Group (look at the CollaborationGroup object for where to insert)
If I understand your requirement correct, you don't actually want a trigger on groups, you want a trigger on some action which indicates some user should be added to a group. Something like upon the creation of a User perhaps? If that is correct in your scenario,you would need a trigger on the User object, and a little bit of Apex to insert a record in the Chatter Group (look at the CollaborationGroup object for where to insert)
LMK if I misread your requirements.
All Answers
If I understand your requirement correct, you don't actually want a trigger on groups, you want a trigger on some action which indicates some user should be added to a group. Something like upon the creation of a User perhaps? If that is correct in your scenario,you would need a trigger on the User object, and a little bit of Apex to insert a record in the Chatter Group (look at the CollaborationGroup object for where to insert)
LMK if I misread your requirements.
You got it correct. I was actually able to get the code towork last night. I just had not had time to come back and update. Thanks for replying.
Hi,
Do you mind sharing the code to automatically add a new user to a group on creation.
Thanks!
Could you please tell us how you did this