Known issue
In environments integrated with JumpCloud, some user accounts are unable to set NTACLs for JumpCloud users and groups on files and folders after logging in via Samba. The issue is shown in the pictures below:
(1) Set NTACL for the specified JumpCloud user, find the user, and click 'OK':

(2) The error that "Unable to lookup user names for display" occurs:

Cause
If this situation occurs, you can check in the settings page of JumpCloud to see if the SID contains leading zeros. For example:

The SID in JumpCloud is: "S-1-2-21-17********-30********-096*******"
According to the Microsoft SID String Format specification (MS-DTYP, Section 2.4.2.1), no leading "0" characters are allowed when IdentifierAuthority or SubAuthority is represented as a decimal number. (Reference: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/c92a27b1-c772-4fa7-a432-15df5f1b66a1)
JumpCloud’s SID field for Samba authentication is automatically generated by default. In some cases, the generated domain SID string includes leading zeros, which does not comply with Microsoft's specifications, leading to problems in SID resolution, manifested as the failure of NTACL modification after Samba login.
Resolution
You can remove the leading zero of the SID on the JumpCloud Side:
Sign in to the JumpCloud Admin Console, click "Access" → "LDAP", select the JumpCloud LDAP, and locate the "SID" setting associated with Samba authentication in the LDAP configuration.
Identify the decimal segment containing a leading zero. Only need to remove the leading zero, then save the change. (In the example above, change 096******* to 96*******)

Then the NTACL settings for the JumpCloud user on the Samba side will work. (Sometimes the SID change may not take effect immediately due to caching or synchronization cycles, so maybe need to wait for a few seconds.)