Skip to main content
19 votes
Accepted

Is Username Globally Unique?

Salesforce is split across login "domains." Each domain uses its own username index, which means it's entirely possible to create the exact same user on login.salesforce.com, test.salesforce.com, and ...
sfdcfox's user avatar
  • 497k
11 votes
Accepted

"Your account has been disabled" error message

I spend some time digging deep into why I could not assign a Permission Set to multiple users within my DE org (Developer Edition) to come to the realization that these users were inactive within the ...
TSmith's user avatar
  • 5,052
9 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 ...
Itai Shmida's user avatar
  • 5,045
9 votes
Accepted

Creating a Community User via Apex from a Contact

I think you're looking in the wrong spot. The role that needs to exist is on the owner of the account record, not directly on the community user. We have a workflow that forces all of our contacts/...
gNerb's user avatar
  • 9,510
6 votes

Do communities users need to be globally unique (across all SFDC systems)?

I can confirm that communities username should be unique across only that org and you can have two orgs with same username for community user license.
Mohith Shrivastava's user avatar
5 votes
Accepted

SOQL - UserLogin relationship from User

Try a Left Inner Join: SELECT FirstName, LastName FROM User WHERE Id IN (SELECT UserId FROM UserLogin WHERE IsFrozen = true) Also note that the query syntax returns a List<User>, and you are ...
Adrian Larson's user avatar
  • 151k
4 votes
Accepted

Automatic deactivation of terminated Users

An outline of my comment above Develop > Email Services Create a new email address. Either give this email address to HR and have them save it in their Address Book, or set up a friendly named ...
caleb.breckon's user avatar
4 votes
Accepted

Does the Last Login Date become blank after a user hasn't logged in for 6 months?

Last Login is NOT cleared after 6 months. It shows just fine. My example I was going to show last logged in 7/2016 As for updating the last login, yes, if the user logs in via API it does update the ...
Eric's user avatar
  • 54.2k
4 votes

Can a user with a Salesforce Platform license create custom objects?

I believe you need the Customize Application permission in order to define new objects. This permission cannot be assigned to a user who has the Salesforce Platform License. To verify, I created a new ...
Adrian Larson's user avatar
  • 151k
4 votes
Accepted

Resetting passwords for community users!

Generally speaking, you can limit the number of records processed in an Apex Batch by passing in a scope parameter to the database.executeBatch(Object batchClassObject, Integer scope); method as ...
John Thompson's user avatar
4 votes

How do I prevent Apex-created users from having to change password on first login?

This is "Working as Designed" in terms of Salesforce functionality. Any time a new user is created or their password is reset, it's expected they'll be prompted to create a new password of their own ...
crmprogdev's user avatar
4 votes
Accepted

Trying to limit users who have "Manage User" permission

Don't give them Manage Users. Instead, give your users a Modify All Data profile that has no administrative privileges, then set up them up as Delegated Administrators. You can choose which users they ...
sfdcfox's user avatar
  • 497k
4 votes
Accepted

How to change EmailId of Trailhead account?

I had the same question once. I wrote to suppprt and got the following answer: It is not possible to change the email address of the trailhead account. In this case, we suggest you create a new ...
Eduard's user avatar
  • 5,181
4 votes
Accepted

Freeze User who is logged in

Based on a quick test in my DE Org, if an admin Freezes a User while the User is already logged in and accessing Salesforce, the User session is immediately terminated. The User cannot navigate to any ...
Jayant Das's user avatar
  • 30.6k
4 votes

Best way to replace an existing user with new user

I would only ever do No. 2 because every single audit history record is then going to be against the new user even though the old user did it. Yep, it's more of a PITA, but if you are in a heavily ...
JodieM's user avatar
  • 1,185
4 votes
Accepted

Deactivating User with Connected Apps

No, there will be no negative affects from deactivating the user. The Connected Apps and Installed Packages belong to the org, not to a user.
sfdcfox's user avatar
  • 497k
4 votes
Accepted

Auditing changes made by an admin on behalf of another user

The Setup Audit Trail will contain the information you're looking for and you're able to download the last 180 days of changes. The history shows the 20 most recent setup changes made to your org. ...
Kris Goncalves's user avatar
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;
Gaurav singh's user avatar
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 ...
John Thompson's user avatar
3 votes

Curious if possible: tracking general end-user DML activity (changes to records)

There are several things you can do to find out what you need. (Independently or in conjunction) Salesforce provides an "Adoption Dashboard", you can install it and use their preferred metrics. You ...
Sebastian Kessel's user avatar
3 votes

"Insufficient privileges" error when trying to access visualforce page

You need to give permissions to see the VF page to the user. You can either add it to the "Standard User" profile or create a permission set for it. The former is easier: Setup > type "Profiles", ...
mkorman's user avatar
  • 4,056
3 votes

How can I grant specific administrative privileges without granting view/modify all data?

To create / modify Users, grant Manage Internal Users permission To create fields / modify help text and page layouts, grant Customize Application permission To create / modify email templates, ...
Jason Walke's user avatar
3 votes
Accepted

Manage External User button from Lightning Experience

Communities related buttons would appear when you click on show more button (down arrow), refer in below screenshot: Note: Classic shows single button but in lightning it seems they are separate. ...
Raul's user avatar
  • 18.8k
3 votes
Accepted

Marketing Cloud Users not Integrated to Salesforce

You only need to integrate users who need to perform Marketing Cloud Sends from within Sales Cloud. Sales Cloud data in Synchronised Data Extensions will be available to all Marketing Cloud users (...
Lukas Lunow's user avatar
  • 21.7k
3 votes

SOQL to get LastLogin of user who is contact for an Account

You can directly get all this required data by querying user object. Refer below query. Select id , Username, Email,LastLoginDate,ContactId, AccountId, IsPortalEnabled from User where ...
Hemant Jain's user avatar
  • 2,785
3 votes

Freeze User who is logged in

Salesforce checks the session's validity with every transaction. This means that if the user tries to continue working outside their Login Hours, while Frozen or deactivated, or if the IP address ...
sfdcfox's user avatar
  • 497k
3 votes
Accepted

Is it possible to create a user from one Org to another automatically?

There is no configuragble solution for this. You will need to utilize APIs (SOAP or REST) here to be able to create User in any Org. If you choose REST, then you will have to consider additional ...
Jayant Das's user avatar
  • 30.6k
3 votes
Accepted

Impact of Freezing SF User - scheduled jobs, reports, oauth tokens

Freezing a user is really about stopping them from logging in as opposed to some of the side affects of deactivation (failed jobs with user). I don't necessarily have official documentation, but I ...
Kris Goncalves's user avatar
3 votes
Accepted

Show specific sections in Setup

To allow particular profile user's to see all the users in the org, profile requires View and Manage Users permission which requires View Setup and Configuration permission on the profile level. Once ...
sanket kumar's user avatar
  • 15.4k
3 votes
Accepted

What's the maximum number of Users that single Salesforce Org can handle?

Personally, I don't think there is a known or documented limit. I have worked with org where were are expecting about 4000 internal and 150,000 community active users which I feel is really low and ...
manjit5190's user avatar
  • 8,043

Only top scored, non community-wiki answers of a minimum length are eligible