function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amey K 10Amey K 10 

UserInfo.getUserName() returning null in Production

I have a apex class which added current user Name to a list. And this class is a part of managed package.
The code workes perfectly fine and the list is populated with the current users. However the same code returns a null list in Production.
Is there any particular set up I need to do in production as this is a managed package ?