ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 418 "User Management" - OnValidateUserNameTestingUserName

Open gretanorv opened this issue 4 years ago • 1 comments

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)  

gretanorv avatar Oct 19 '22 12:10 gretanorv

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.

AlexanderYakunin avatar Nov 13 '22 11:11 AlexanderYakunin