8
votes
Accepted
How can I delete a contact which was associated with a customer portal user?
Just to add to @John Thompson's answer, you can add the button that disables the customer user:
This will remove the connection between the user and the contact, and mark the user as deleted.
If you ...
7
votes
Accepted
Portal for users with no authentication
This is possible with force.com sites .
With force.com sites you can build visualforce pages that can be accessed by an anonymous user .
The other option is to configure a simple web to Lead form ...
7
votes
Accepted
how to logout from lightning community
Please use below code to redirect to community login page :
window.location.replace("<community-domain>/secur/logout.jsp?retUrl=<redirect-URL>");
Eg:
window.location.replace("/...
6
votes
Accepted
License Limit Exceeded Error while creating user
There is no solution to this since you have consumed all the license that were allocated for your org .
Deactivate the existing users if you are testing your code .
You can also purchase additional ...
5
votes
Generic Error in Community site
You can easily catch the exception from debug logs
Just go to generic exception page in the VF page code you will find line
<apex:param value="{!$Site.ErrorMessage}"/> change that to <apex:...
5
votes
Accepted
How to identify if underlying org has customer portal enabled?
You can query the Status of the Network object. If there's a community, there will be an Id. The Status will tell you whether it's Live, Down for Maint, or Under Construction. I believe you'll need to ...
5
votes
How do I deactivate a Portal User in Apex Code?
This question was asked and last answered back in 2013. In 2021, it seems that attempting to update User.isActive in the same update operation that sets User.isPortalEnabled will actually cause the ...
4
votes
Accepted
Report on Contacts with community users
You will create a Report on User Object where ContactId != '' .Please check the below screenshot
If a Community User is created then a User record has a contactId populated to link the contact with ...
4
votes
Accepted
Apex Test Data - Portal Users
First, you'll want to create your RunAs user who should be someone with the profile that has the permissions needed to create accounts and enable your contacts as portal users. Worst case, that can ...
4
votes
Accepted
How to change the "User License" type for customer portal users using a script?
This Knowledge Article User license conversion when migrating from portal to communities covers the transitions that are simple:
An administrator can change the license type and profile on the user
...
4
votes
Accepted
<ui:outputText /> to display "Guest" if no user is Logged in?
I'm fairly certain that NULL is case sensitive.
Try this:
<aura:if isTrue="{!v.user != null}">
And it looks like the user is never null. If the user has not logged in, then they are a ...
4
votes
Aura:If condition's strange functionality?
I would probably try to use the <aura:If> statement to conditionally SHOW fields rather than hide them. This way they won't appear and then disappear.
Ie, show the desired fields to users who ...
4
votes
Accepted
How to change the Logo of the prebuilt themes chosen in Community Cloud?
You can change your logo in Theme > Images > Company logo in the community builder
4
votes
Accepted
Portal user cannot edit own account and cannot create new contacts (portal users cannot own partner accounts)
The same decision (remember to add the formula to the flow):
And now you set again the AccountId and change the owner to be the same of the Account:
Remember to activate the flow.
Now your Portal ...
3
votes
How to share object records to customer community users?
If your sharing requirements cannot be met via customer community licence then you will need to move to customer community plus licenses.These have ability to share records via apex or sharing rule ...
3
votes
Accepted
Invalid email address with an underscore
This is a known issue (4+ years old) in the platform - see Allow underscores "_" in email domain fields.
Add your vote and comment but you will have use a workaround (e.g. alternate text field) for ...
3
votes
Accepted
Show information on visualforce page only for certain profiles
it works when you use the global profile variable:
rendered="{!$Profile.Name == 'Your Profile Name'}"
3
votes
What impact does the Account ID argument to Site.createPortalUser have?
In and of itself, the AccountId has no impact on the access rights of the User until permission sets or sharing rules are applied.
The basic profile of a PortalUser isn't dependent on the AccountId. ...
3
votes
How to determine if Apex code is executing in an authenticated vs. unauthenticated environment (without a SOQL query)
Winter '15 introduced the Auth.CommunitiesUtil class which contains a isGuestUser() for determining if the user is a guest or not.
3
votes
How can I delete a contact which was associated with a customer portal user?
Once a User record is created in Salesforce it can't be deleted. This applies to all User license types, including Portal and Community Users.
The reason User records can't be deleted almost ...
3
votes
How can I delete a contact which was associated with a customer portal user?
Through code you can also acheive this. In developer console execute below code:
User u=[select id,Name, IsPortalEnabled from user where id='xyz' limit 1];
u.IsPortalEnabled=false;
update u;
3
votes
Accepted
How to detect if inside a Community in a self-registration page?
Please check site class it has method gettype which can give you the context from which you are running the code.
Site.getType();
3
votes
Accepted
Allow Customer Portal users to add photos of themselves in My Settings?
you are confusing the "My Settings" page with "My Profile", which is used to control visibility settings. if they select my profile, users should be able to upload their photo:
3
votes
Accepted
Lightning Component not able to reference needed fields
Based on the information you have provided:
In "COMPONENT" I see aura:component implements="forceCommunity:availableForAllpageTypes" controller="AAA_ProfileController", but I don't see "...
3
votes
Accepted
Community Portal: Resetting the window.ShadowRoot on windows.onload
Well, you are basically punching a hole through the Shadow DOM semantics that LWC provides for you. LWC's native Shadow DOM parity is a work-in-progress, but I think it's close enough that you might ...
2
votes
How to increase Users in developer org with Customer Portal User Licenses
Developer Orgs come with a limited number of licences purposely and can't be increased without paying for a "more premium" organisation. This link will show you the capabilities of a Developer Org but ...
2
votes
custom sites domain name redirecting to salesforce login screen?
Here may be solution, I faced the same problem but I was trying to setup it in sandbox environment.
http://developer.force.com/cookbook/recipe/registering-a-custom-domain-for-your-force-com-site
This ...
2
votes
Visualforce site working on HTTP but not on HTTPS
We have found some session issues when switching back and forth from http and https. So I suggest go all the way either way.
Force https:
Check Require Secure Connections (HTTPS) on the Sites ...
2
votes
Accepted
Store last generated number and generate +1 based on that number on the portal.
You can create a custom setting (or an object in this case your object will need only 1 record that will contain that number) and store that number there. Then once it is changed just update that ...
2
votes
Accepted
Communities - sharing options
You're correct that the Customer Community Plus license is very different than the standard Customer Community and Partner Community licenses when it comes to their sharing models. You will still have ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
customer-portal × 344apex × 60
community × 60
visualforce × 50
force.com-sites × 38
customer-community × 34
sharing × 18
user × 15
authentication × 13
partner-portal × 13
profile × 9
portal × 9
custom-object × 8
licenses × 8
rest-api × 7
email × 7
security × 7
contact × 7
knowledge × 7
user-management × 7
email-template × 6
case × 6
css × 6
permissions × 6
force.com × 6