- Newest
- Most votes
- Most comments
The issue you're experiencing with WorkSpaces not sending activation emails when created through the CLI is actually expected behavior in certain scenarios. When WorkSpaces are created using AD Connector, a trusted domain, or if the user already exists in Active Directory, invitation emails are not automatically sent.
To address this, you can manually send welcome emails to these users. Here's how you can do it:
- Open the Amazon WorkSpaces console.
- In the navigation pane, choose WorkSpaces.
- On the WorkSpaces page, use the search box to find the user you want to send an invitation to.
- Select the corresponding WorkSpace (you can only select one at a time).
- Choose Actions, then Invite users.
- On the Invite users to the WorkSpace page, choose Send invite.
If the "Send invite" option is greyed out, it might be due to permissions issues or the WorkSpace not being in the correct state. Ensure that you have the necessary permissions and that the WorkSpace is fully provisioned.
Regarding the password issue, it's important to note that for security reasons, AWS doesn't provide a way to set or reset passwords through the CLI or API for WorkSpaces users. The password management is typically handled through your directory service (like Active Directory).
If you need to set up or reset passwords, you might need to use Active Directory tools. For example, you can set up Active Directory Administration Tools for WorkSpaces Personal to manage user passwords.
As for automating the entire process including password management, you might need to consider integrating your CLI-based WorkSpace creation process with your directory service's management tools or APIs. This would allow you to create the WorkSpace via CLI, then use directory service tools to set the initial password, and finally use the WorkSpaces console or API to send the invitation email.
Sources
Troubleshoot issues for WorkSpaces Personal - Amazon WorkSpaces
Manage users in WorkSpaces Personal - Amazon WorkSpaces
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 10 months ago
What permissions are needed to get "Send invite" option working? It is greyed out even with accountadmin role. Also, State of workspace is "Active"
Second, as I have created the user in Microsoft AD before creation of workspaces, that might be the reason for not receiving the invitation link. But here's the caveat, there's no way to create a workspace without the user name, that is mandatory field on CLI command.