Support content_with_roles for dynamically resolved roles