17 votes

Salesforce: Any API for getting user information?

There is an actual endpoint for this now as well: https://login.salesforce.com/services/oauth2/userinfo See here for the help document
CommandZ's user avatar
  • 271
10 votes

How to unlock a User with Apex/Soql

You can unlock users via the UserLogin record. UserLogin someDude = [SELECT IsPasswordLocked FROM UserLogin WHERE UserId = 'jndfgl9sfdg08fg']; someDude.IsPasswordLocked = false; update someDude;
TemporaryFix's user avatar
  • 2,937
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

Email Notification on when user login

You can do this in workflow. Create a workflow and give criteria to run everytime it is edited. Now in formula if((PRIORVALUE( LastLoginDate ) - LastLoginDate ) //calculate the difference And ...
Tushar Sharma's user avatar
2 votes

is it possible a community user wants to create a user in his community

Yes community user can create another community user. Profile pf = [Select id,name from Profile where name ='Volunteer' limit 1]; account acc = [select name from accout where name="individual"]; ...
Tushar Sharma's user avatar
2 votes
Accepted

Who all can enable 'Marketing User' in Dev Org?

'Marketing user' feature comes under the feature licenses. You can see in the company information section of your org that how many licenses are available for your organization.Generally for ...
Mr.Frodo's user avatar
  • 5,804
2 votes

How to View Who has Been Editing Specific Information on Leads

You have to enable Audit Trails as specified here Field Audit Trail lets you define a policy to retain archived field history data up to ten years, independent of field history tracking. This ...
glls's user avatar
  • 20.1k
1 vote
Accepted

Is there a way to grant permissions to edit just one type of page layout (for just one object)?

No. Editing layouts is a broad permission. Both "View Setup and Configuration" and "Customize Application" profile permission are reqy to change all PAGE LAYOUTs. https://...
Benjamin Pirih's user avatar
1 vote
Accepted

Saleforce License Limit Different in different developer instances

The variant of the developer environment depends on things for which it would be used. The general rule of thumb is the one with lesser licenses is the one where you actually code and the higher one ...
Pranay Jaiswal's user avatar
1 vote
Accepted

set the field Ownership a read only for a specific profile?

You can use a validation rule: AND($Profile.Name='Some Profile',ISCHANGED(OwnerId)) While they'll be taken to the change owner screen, as normal, when they to save the change, they'll be given an ...
sfdcfox's user avatar
  • 487k
1 vote
Accepted

Triggering login email after user()

Is there any way to cause the new user email to be sent after creating a force.com user through the API (user() )? Use the EmailHeader.triggerUserEmail flag. Alernatively, ff you use the set ...
sfdcfox's user avatar
  • 487k

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