Connecting new users to aws workspaces in terraform

Hello all, I am trying to create AWS workspace via terraform. I am difficulites attaching new users to a working directory via terraform. Anyone has experience with this and can help me?