Problem
You’re attempting to publish Office web-based 365 applications within Citrix with the following instructions:
Configuring individual Office suite applications in Citrix Workspace
… but notice that the first Microsoft Word you publish fails to launch and presents the following error:
Sign in
Sorry, but we’re having trouble signing you in.
AADSTS51004: The user account tluk@contoso.com does not exist in the 87f1d4b7-d6e7-4ebb-842d-cce6024b0bb2 directory. To sign into this application, the account must be added to the directory.
Troubleshooting details
If you contact your administrator, send this info to them.
Request Id: 468d4068-a6aa-4559-b8bf-fcc7f7be8200
Correlation Id: 145b397e-dd9f-462c-87c0-50b1b685190e
Timestamp: 2020-11-25T21:21:14Z
Message: AADSTS51004: The user account tluk@contoso.com does not exist in the 87f1d4b7-d6e7-4ebb-842d-cce6024b0bb2 directory. To sign into this application, the account must be added to the directory.
Advanced diagnostics: Enable
If you plan on getting support for an issue, turn this on and try to reproduce the error. This will collect additional information that will help troubleshoot the issue.
Solution
One of the common causes for this error during the launch is if the Launch the app using the specified URL (SP initiated) is not enabled (the documentation does not explicitly specify this should be):
Word should launch once the configuration is enabled: