Publishing Office 365 web-based apps with Citrix Workspace fails to launch with the error: “AADSTS51004: The user account @contoso.com does not exist in the 87f1d4b7-d6e7-4ebb-842d-cce6024b0bb2 directory.”

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

https://docs.citrix.com/en-us/advanced-concepts/design-guides/citrix-gateway-o365-saas.html#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:

160

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.

Copy info to clipboard

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.

159

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):

158

Word should launch once the configuration is enabled:

157