Unable to Remove Users from Group While Implementing Scheduled Cleanup Process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2026 03:37 AM
Requirement
- Every month run a flow to check which group members from "Finance group" do not have an approval on the last 6 months;
- Users shall be removed from the group "Finance group" if the user has not been selected has an approver for the last 6 months;
- When users are removed, a notification with the removed users should be sent to email
Current Status
I have designed and implemented the flow, and I am successfully able to:
- Retrieve the group members.
- Identify users who have not acted as approvers in the last 6 months.
- Prepare the list of users to be removed.
However, I am encountering an error during the step where the users are removed from the group. The flow fails at the record deletion/removal stage.
Used flow properties as run as "system user".
Any guidance or suggestions would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2026 03:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2026 03:40 AM
- In the flow, locate the step that looks up sys_user_has_role records for the user.
- Add a condition: Inherited = false.
- Run the flow.
The flow only fetches and deletes the roles that are not inherited (Inherited = false) from the user profile. The system also deletes the associated roles that have Inherited = true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2026 03:51 AM
Try this @n-ssurabhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2026 03:42 AM