diff --git a/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/App_Start/Startup.Auth.cs b/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/App_Start/Startup.Auth.cs
index e7cece7..7eb5d35 100644
--- a/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/App_Start/Startup.Auth.cs
+++ b/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/App_Start/Startup.Auth.cs
@@ -59,7 +59,7 @@ public void ConfigureAuth(IAppBuilder app, Autofac.IContainer container)
if (upn == null
|| !validUpns.Contains(upn, StringComparer.OrdinalIgnoreCase))
{
- context.OwinContext.Response.Redirect("/Account/InvalidUser");
+ context.OwinContext.Response.Redirect("/Account/InvalidUser?upn=" + upn);
context.HandleResponse();
}
diff --git a/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/Controllers/AccountController.cs b/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/Controllers/AccountController.cs
index 96f4728..04f797d 100644
--- a/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/Controllers/AccountController.cs
+++ b/Source/Microsoft.Teams.Apps.FAQPlusPlus.Configuration/Controllers/AccountController.cs
@@ -56,9 +56,11 @@ public ActionResult SignOutCallback()
///
This user does not have the proper permissions for this action. Please sign in with a valid user credentials.
\ No newline at end of file +This user does not have the proper permissions for this action. Please sign in with a valid user credentials. In case you are still unable to access the app please ask the app administrator to add @ViewBag.Upn to the list of users allowed to configure this app
\ No newline at end of file