Newer Version Available
CommunitiesUtil Class
Namespace
Example
The following example directs a guest (unauthenticated) user to one page, and authenticated
users of the community’s parent organization to another
page.
CommunitiesUtil Methods
The following are methods for CommunitiesUtil. All methods are static.
isGuestUser()
Indicates whether the current user isn’t logged in to the community
and may need to be redirected to log in, if required.
Signature
public static Boolean isGuestUser()
Return Value
Type: Boolean
isInternalUser()
Indicates whether the current user is logged in as a
member of the parent Salesforce organization, such as an employee.
Signature
public static Boolean isInternalUser()
Return Value
Type: Boolean