When inviting a user to a space we now generate permission ids (based on the invited user's/group's id)