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
nirpnirp 

Trying to allow the admin user control which users have access to a custom functionality

I have a managed pacakge with custom funcionality and I want to allow the Admin to control which users have access to it.
When I tryed to display the list of users and allow picking from it I encountered the limit of 170K for the visual force page.
I would like to know is there a strandrd way to display the list of avaible users in the org and allow the Admin to pick from it?
Vishwajeet kumarVishwajeet kumar
Hello,
You could do pagination if this is custom page and limit number of user records that can be displayed, which will avoid the view state error.

I have also seen in some packages that manage license option on intalled pacakges provide option to add/remove users.

Thanks