function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Karthikeyan ChandranKarthikeyan Chandran 

Help on User Trigger.

Hi Team,

I have a trigger in user object.

I want to add and remove the users from the public groups based on the user record update(Profile).

EX: If the user profile is "STD", i need to add the users to the public group 'std'
If the user profile is "PVT", i need to add the users to the public group 'pvt'
If the user profile is "ADM", i need to add the users to the public group 'adm'
.
.
.
.
.
.
.
etc
Can anyone help me on this ASAP?

Thanks,

 
Best Answer chosen by Karthikeyan Chandran
Hemant_SoniHemant_Soni
Hi Karthikeyan Chandran,
Can you please share your trigger code so i can make necessary change in that.
Thanks
Hemant

All Answers

Hemant_SoniHemant_Soni
Hi Karthikeyan Chandran,
Can you please share your trigger code so i can make necessary change in that.
Thanks
Hemant
This was selected as the best answer
Karthikeyan ChandranKarthikeyan Chandran
Shared it.
Hemant_SoniHemant_Soni
Hi Karthikeyan,
Can please mark it solved.
Thanks
Hemant
Karthikeyan ChandranKarthikeyan Chandran
Thanks @Hemant.