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
dcarmen66dcarmen66 

Delegated Administrator roles and profiles - User Maintenance

I'm trying to duplicate some of the User maintenance functions in a visual force page, and I'm running into a bit of a problem. In the normal user form, if a user is a delegated administrator, the picklists for roles and profiles only show what they have access to. In my visual force page, the list comes up with all roles and profiles. Does anyone know how to get the same picklist?

 

For example, our delegated administrator for zone 1 can see the roles for his zone and all roles under the zone. He can also see all profiles defined in the delegated administration form. When I put that field on my form, all roles and profiles display.

 

Any help is appreciated - thanks!

dcarmen66dcarmen66
Alternately, do we have access to how the delegated administration information is stored within Salesforce so we can determine the picklists ourselves? If so, can someone point me in the right direction?
NikhilNikhil

Not sure about this.. but did you try adding "with sharing" on your controller?