By using Flowdesigner need to add users automatically to the group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 02:28 AM
If user selects User and Group values from service catalog, we need to send Approval to Group manager, if manager is Approved then we need to add users to group automatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 02:36 AM
Hi @sree4510 ,
To add the user to a group in Flow designer follow the below steps:
1. Add create or update record action.
2. Select Table name - Group member [sys_user_grmember].
3. Now select the group field and select the group in which you want to add a user.
4. Select the user field and select the user to add to the group.
Note: for approval , you can add one more action "Ask for Approval".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 02:39 AM
Hlo @Community Alums ,
Need to add the same group which end user selected from the request

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 04:34 AM - edited 01-09-2023 04:35 AM
- Create a new Flow Designer flow with a Service Catalog Request trigger.
- Add a form element to the flow to gather the user name and group that the user wants to be part of.
- Add an approval element to the flow, configured to send an approval request to the group manager of the selected group.
- Add a decision element after the approval element, with a condition to check if the approval was approved.
- If the approval was approved, add a script element to the flow to add the user to the group and send a notification to the user.
- If the approval was not approved, add a script element to send a notification to the user indicating that their request was denied.
You can use the addMember() function of the Group class to add the user to the group, and the sendEmail() function of the MailAPI class to send notifications to the user and the group manager.
Kindly mark the response as Correct or Helpful.
Cheers,
Anish