Apply tags to dependent roles correctly

Fixes #4339