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
onetwokathreeonetwokathree 

list of customer Portal User in Visual force page

Hi i have enabled customer portal and all user register from the siteRegister page stored in customer portal.

has any body idea to list all customer Portal User in to visual force page?

 

Best Answer chosen by Admin (Salesforce Developers) 
bmabma

Use Apex to perform a query on the user object using "IsPortalEnabled", "IsPortalSelfRegistered", or "UserType" as the filter depending on what you want. Read the API Develoepr Guide on what fields are available.

 

Ex: Query for Portal User

 

List<User> userList = [select name from User where IsPortalEnabled = true];

 

All Answers

bmabma

Use Apex to perform a query on the user object using "IsPortalEnabled", "IsPortalSelfRegistered", or "UserType" as the filter depending on what you want. Read the API Develoepr Guide on what fields are available.

 

Ex: Query for Portal User

 

List<User> userList = [select name from User where IsPortalEnabled = true];

 

This was selected as the best answer
onetwokathreeonetwokathree
Thanks, it helped us....