I'm using feeds (7.x-2.0-beta2) to pull in users and I want them to be blocked if they're not found in the feed. I have it set to 'Update existing users' and 'Block non-existent users' but it's not blocking users that have been deleted from the database.

Do I have to use Tamper to get this to work (https://www.drupal.org/node/2092895#comment-9695467)? Is there any other configuration I could be missing? Any ideas for troubleshooting this?

Thanks!

Comments

capysara created an issue. See original summary.

MegaChriz’s picture

Status: Active » Postponed (maintainer needs more info)

Only users previously imported by Feeds will be blocked if they no longer appear in the feed. Users that exist on your Drupal site that are not updated or inserted by Feeds will not be blocked by Feeds. Is this the case?

The Tamper plugin mentioned in #2092895-9: Block users not included in feed is only needed when you want to unblock users if they reappear in the feed. For only blocking users that are removed for the feed, this Tamper plugin is not needed.

There is no other configuration that you should need to set: setting "Action to take when previously imported users are missing in the feed" to "Block non-existent users" should be sufficient. You do need to run the import again after the feed is updated. If you configured "Periodic import", this should happen on cron runs. If you have "Periodic import" turned off, you'll need to manually submit the import form.

capysara’s picture

I see now. Users were being blocked, but I was trying to unblock them with a rule instead of using Tamper. So they were just immediately being unblocked and then, because they were already deleted from the database, they were outside of the Feed.

Thank you for explaining--the Tamper plugin is exactly what I needed.

Thanks!

capysara’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)