We can get the user’s card details with the help of USERSECURITYID field in the Business central OnPrem and Saas version
USERSECURITYID – The ID that is assigned to the user by the application. This is the value of the User Security ID field in table 2000000120, the User table, for the current user.
Learn more from here
Below is the code you can use to get the details for current user logged in BC
var User: Record User; begin User.get(UserSecurityId()); message('Full Name:%1..Email ID:%2', user."Full Name", User."Contact Email"); end;
We have to standard BC table USER with table id 2000000120
Thanks for visiting my blog.