 Hello friends. I am Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate how you can add a user in public group whenever a user record is created. So for this, we need to create a public group. Then we will be creating a record triggered flow and then we will create a user. So before starting, if you want to watch all videos related to Salesforce, so you can visit this website studiesalesforce.com. So I placed all videos created by me on this website so you can find them together. Now starting my demonstration. So first of all, I'm going to create a public group clicking on new. So naming it as my group right and I'm clicking on same. So right now I'm not assigning any user to this group. So if I open this group, public group, so you can see here no member is available, right? So now my requirement is whenever I create a user record so that user will be automatically added to this group. Later on, in your projects, you can apply a condition like if you want to add a particular group in a particular. Sorry, if you want to add a particular user in a particular group, so that condition you can apply in the flow that we are going to create, right? So I'm duplicating this step. So now I'm going to create a flow. So I'm searching for flows, clicking on new flow. I'm going to select record triggered flow and here I'm going to choose a record is created and after the record is saved. Then I'm choosing object as user, clicking on done. So object is selected here. Now, first I need to query the public group ID, so fetch public group. If you need to search the object as group, then here you can pick developer name equals and from here you can copy this developer name. And you can paste it here and leave all the options as it is. So through this we fast the public group details. Now we need to create a record. Here we can write add user to public group. Then select this option so that we can choose an object. So here search for group member. Here we need to populate these two fields. First is group ID and second is user ID. So group ID we can have from here. So through fetch public group get record element we can have the ID of the public group and for user ID, you can choose record dot ID. Right, so this way both fields are populated. Now I'm clicking on done. Connecting this clicking on save add user to a public group. So this is the name of the flow clicking on save. Now I am activating this. So now I can create a user. So clicking on new user. So first name. I am naming it as Irish. Alias will be created email idea I'm taking as this. Then user name. Then here license and selecting force dot com free user. Because this is a demo where I already used both Salesforce licenses. So now I'm clicking on save. So this user is created. Now moving to this public group and I'm refreshing this. So here you can see the user is automatically added to this public group. Right, so this way with the help of this record triggered flow, we can add a user upon creation of user record to the public group and if you want, like this user will be added on record updation as well. So you can choose this third option and the rest of the thing I already explained you. So this way if you want to add a user in public group, so you can use record trigger flow. So I hope you understood whatever I demonstrated and if you want to watch other videos on Salesforce, so you can visit my websites study salesforce.com so I place all the Salesforce related videos created by created by me on this website. So do visit and send me the feedback so so that I can improve upon. Thank you for watching this video.