Add an existing workspace user to a space and choose their department and role there.
You need the Admin role in the space to manage these settings.
If the person does not have a workspace account, an administrator can follow Invite New Users to create one. The space form also offers Invite using email; these steps cover adding an existing account.
If an email error appears, check the user list before repeating the action: membership may already have been saved.