Pages
Tuesday, May 13, 2025
Salesforce: Inactive User
Sunday, January 23, 2022
Salesforce: Mass Update Role Hierarchy Access
In a blog written many years back, I shared sharing access from role hierarchy, which is about to give access to the Account owner for the Contact/Opportunity/Case records that related to the Account, but is not owned by Account Owner.
That access information is stored in the UserRole object, and you can mass update the access by simply updating the records in the UserRole object.
A sample query
SELECT Id, Name, ParentRoleId, DeveloperName, RollupDescription, ContactAccessForAccountOwner, OpportunityAccessForAccountOwner, CaseAccessForAccountOwner FROM UserRole WHERE PortalType = 'None'
A few fields are worth knowing from the above query:
- PortalType = None: Salesforce application role, CustomerPortal: Customer portal role, Partner: partner portal role.
- RollupDescription, this is "Role Name as displayed on reports", so it can be different with the actual Role Name.
Reference:
Wednesday, April 4, 2018
Salesforce: Change User Email Address
Requirement: Email addresses can only be updated for Users listed as “Active” on the User Detail page.
Once email change in the setup menu, a notification email will be sent to the original email address and a verification email will be sent to the new email address to authorize the change. To apply the update, the user must click the verification link sent to their new email and complete the resulting verification steps within 72 hours.
Please note that this will happen when changing the email address on the user record, including changing the "return address" from the user's personal email settings.
Expected Behavior:
When these fields are updated, you can expect the following:
- Username: the field is updated and the user receives an email notification, notifying them of the change.
- Email Address: an email is sent to the new email address so that the change can be confirmed. The field is not updated until the email address owner confirms the change. An email is also sent to the older email address informing the change.
- Return Email Address: an email is sent to the new email address so that the change can be confirmed. The field is not updated until the email address owner confirms the change.