18
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 ...
10
votes
Accepted
How to create an API only user
There is an option called "API only" below "API enabled" in profile. If you are looking in developer edition it isn't available but it's there in enterprise edition.
9
votes
Accepted
Sys Admin lost access to community
Below the link how to add system admin (yourself) to community to be able to manage it.
https://help.salesforce.com/apex/HTViewSolution?urlname=How-do-I-add-myself-as-a-member-of-a-Community-if-the-...
8
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/...
7
votes
How do I skip the security question in Salesforce?
To prevent the security question from appearing, you have to reset the password.
It looks like you let a (new) user take the account of another user. That's not a good practice. It's better to ...
7
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 ...
7
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 ...
6
votes
Accepted
Change Salesforce license to Chatter Free / Chatter Only User
That is not possible. Please refer to this article
https://success.salesforce.com/ideaView?id=08730000000KUIzAAO
Try logging a case.
Similarly,
You can't convert a Chatter Only license or any ...
6
votes
Accepted
UserType - REST vs SOAP
What would you accept as an authoritative answer here? Someone internal to Salesforce could look at the underlying implementation and see the why of it. The best I can do is look at the available ...
6
votes
Accepted
Are community users stored in salesforce as users or contacts?
Below are the answers that I can provide you with:
Every Community User will have both a User record and a Contact Record. All Community Users have profiles. Only Partner Users have Roles.
Will you ...
6
votes
Accepted
How do I skip the security question in Salesforce?
If you are a system administrator you can set user password using System.setPassword method
System.setPassword(userId, password as plain text)
Login as system administrator.
Click on Developer ...
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.
5
votes
How to create an API only user
For those that do see it, if you are looking at a dev org created from an existing EE org, you should have it. However, if you are creating a brand new dev org that is not connected/related to an ...
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 ...
4
votes
Cannot login as a User even if i am salesforce admin
There is an org-wide setting to allow this under security settings. See this description
4
votes
Accepted
Where can I find the Salesforce User Password?
You can't get the user password for security reasons. You can only reset it if you need to but there is no way to get nor the password or the hash.
4
votes
Accepted
Disable User In All SF Environments/Orgs (Production and Sandbox)
Restrict by IP
Profile restrictions can prevent the user from logging in through remote locations, and this setting copies on Sandbox refreshes. Very simple procedure to kick them off your network, ...
Community wiki
4
votes
How to create an API only user
This is a permission not a special user. You can create a new API only user by setting permission at profile level:-
Create a new User.
Create a new Profile or clone existing one
In new profile at ...
4
votes
Accepted
Can a trigger populate the Manager on User records from a custom field?
Yes, you can create a User to User lookup field (hierarchy) on the User object, for instance "Custom_Manager__c," and use the following logic. Apex, by default, plays in system mode.
trigger ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
3
votes
Will I get any failure notification if I create a user with an invalid address?
I've just tested this. If you're talking about validation, yes:
However, if you're talking about an incorrect e-mail address. I've not had any notification from Salesforce when submitting one. ...
3
votes
Getting user info when logged in as another user
Not sure if this is used everywhere BUT,
Since it is a web tab, if you have control over it and can access cookie information you can check for the cookie matching the salesforce instance i.e: na1....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
user-management × 239user × 37
apex × 26
administration × 25
community × 23
permissions × 23
user-record × 20
profile × 18
user-admin × 13
permission-sets × 12
marketing-cloud × 11
security × 11
licenses × 10
userlicense × 10
api × 8
customer-community × 7
customer-portal × 7
email × 6
sandbox × 6
login × 6
passwords × 6
visualforce × 5
rest-api × 5
managed-package × 5
role-hierarchy × 5