Flow fails with the error "Unknown error occured while deleting the record.Issue On flow where one of the actions is to delete user roles, but when running the flow these steps fail with the error "Unknown error occurred while deleting the record.CauseAs per the OOTB functionality, records in the User Roles [sys_user_has_role] table where Inherited = true cannot be deleted by an administrator (neither manually nor using a script). The roles with Inherited = false actually contains the role which is actually termed as Inherited = true. Removing the roles with Inherited = false will remove all its associated roles with Inherited = true. This is an expected OOTB behavior. When you try to execute this via a flow, it tries to delete all the roles that are available for the specific user. These roles have Inherited = true and Inherited = false also. Due to this, you get the error "The requested flow operation was prohibited by security rules." even when you have the admin role.ResolutionIn order to achieve this, on the flow while trying to look up the sys_user_has_role records for the user, add one more condition as Inherited = false. With this, only the roles with Inherited = false will be fetched and deleted from the user profile. Deleting these roles will also delete the associated roles having Inherited = true.