Error when inviting users

fixes #3433
- grabbing/plucking only the role ID when creating a user