Issue #1386822 by Jaapx, jhodgdon: Ensure only one indexing user is created per role (and add test for this)