Jul 19 2024 01:30 AM
Dear all,
we find the error message AADSTS50105 a bit hard to understand and would like to display a custom text to users, on how to request access. Do you know if it is possible to change the Error message Azure AD login?
Kind regards,
Simon
Jul 24 2024 04:23 AM
Jul 24 2024 04:34 AM
Thanks @sdtslmn
The problem is that the user is not part of a active directory group, if they do not have a license to access an application. We would like to inform the user, that he/she needs to request a license via our IT shop to be added to the group. But it seems this is currently not possible. Do you know, if there is a way to raise an improvement request?
Kind regards,
Simon
Jul 24 2024 05:53 AM
you can use this link to provide feedback/improvement ideas
https://feedback.azure.com/d365community
and additionally
if this is an application you have developed
you can create an errorcontroller
first add this code to your startup.cs
app.UseStatusCodePagesWithReExecute("/Error/{0}");
then create ErrorController
public IActionResult Error(int statusCode)
{
if (statusCode == 50105)
{
return View("LicenseError"); // View with your custom message
}
}
Jul 24 2024 06:07 AM