ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] codeunit 418 "User Management" - OnValidateUserNameTestingUserName
Hello, would it be possible to add OnValidateUserNameTestingUserName event to codeunit 418 "User Management", like this:
procedure ValidateUserName(NewUser: Record User; OldUser: Record User; WindowsUserName: Text)
...
if User.FindFirst() then
Error(Text002Err, NewUser."User Name");
IsHandled := false;
> OnValidateUserNameTestingUserName(IsHandled, WindowsUserName, NewUser); //New Event
if not IsHandled then begin
if NewUser."Windows Security ID" <> '' then
NewUser.TestField("User Name", WindowsUserName);
local procedure OnValidateUserNameTestingUserName(var IsHandled: Boolean; WindowsUserName: Text; NewUser: Record User)
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.