Create New Users and Allow a User to Delete Accounts
Follow Along with Trail Together
Want to follow along with an expert as you work through this step? Take a look at this video, part of the Trail Together series.
Introduction
You are attending a security and data access review meeting with the CEO and the Executive team. The first item on the agenda is to ensure that all users have the appropriate object permissions for their job roles. John Wiseman, CEO, wants to ensure users have access to the objects they need to do their job, but wants to restrict the ability to delete records to just Executive Users and the Support team. Noah Larkin, VP of Services, is helping to clean up records, and needs temporary permission to delete Accounts.
Create a New Profile Without Delete Permissions
- From Setup, enter
Profiles
in the Quick Find box, and select Profiles.
- Click S from the alphabet picker across the top.
- Click Clone next to Standard Platform User.
- Enter
Standard Profile - No Acct Delete
for Profile Name.
- Click Save.
- Click Object Settings and select Accounts.
- Click Edit.
- Deselect Delete.
- Click Save.
Set Login Access Policies and Create a New User
- From Setup, enter
Login Access Policies
in the Quick Find box, and select Login Access Policies.
- Select the Enabled checkbox next to Administrators Can Log in as Any User.
- Click Save.
- From Setup, enter
Users
in the Quick Find Box, then select Users.
- Click New User. Complete the new user record with these details.
- First Name:
Maya
- Last Name:
Lorrette
- Alias:
mlorr
- Email: Enter your own email address
- Username: This auto-populates with your email address) Replace using formula: first initial + last name of user + @ + your initials + your favorite color + a number + .com. Example:
mlorette@wbyellow678.com
Nickname:mlorrette
- Title:
Accounts Receivable
- Department:
Sales
- User License: Salesforce Platform
- Profile: Standard Profile - No Acct Delete
- Role: Western Sales Team
- First Name:
- Fill in her Locale settings, including time zone and language.
- Time Zone: Pacific Time (America/Los_Angeles) Note: either GMT-07:00 or GMT-08:00 depending on time of year.
- Locale: English (United States)
- Language: English
- Time Zone: Pacific Time (America/Los_Angeles) Note: either GMT-07:00 or GMT-08:00 depending on time of year.
- Click Save & New. Add another user.
- First Name:
Ted
- Last Name:
Kim
- Alias:
tkim
- Email: Enter your own email address
- Username: This auto-populates with your email address) Replace using formula: first initial + last name of user + @ + your initials + your favorite color + a number + .com. Example:
tkim@wbyellow55.com
- Nickname:
tkim
- Title:
Recruiter
- Department:
Sales
- User License: Salesforce Platform
- Profile: Standard Profile - No Acct Delete
- Role: Western Sales Team
- First Name:
- Next, fill in his Locale settings, including time zone and language.
- Time Zone: Pacific Time (America/Los_Angeles)
- Locale: English (United States)
- Language: English
- Time Zone: Pacific Time (America/Los_Angeles)
- Click Save.
In a Trailhead playground, you’re limited to the number of Salesforce and Salesforce Platform licenses you have to distribute. To complete this challenge, we’re going to deactivate a few users to free up some of those licenses. Sound confusing? Don’t worry. It will all make sense in the next step.
- Navigate to Users in Setup, and click Edit next to Maya Lorrette.
- Deselect the Active checkbox to deactivate Maya’s user license.
- On the warning message, click OK, then click Save.
- Repeat the same steps to deactivate Ted Kim.
Now that you’ve deactivated two users, you have two additional Salesforce Platform licenses available. Let’s assign them to our new users.
- Select New User and fill in the details.
Field
Value
First Name
Noah
Last Name
Larkin
Alias
nlark
Email
(enter your own email address)
Username
(auto-populates with your email address-replace using formula: first initial and last name of user @your initials and your favorite color.com)Ex:
nlarkin@wbpurple.com
Nickname
nlarkin
Title
VP Services
Department
Customer Support
User License
Salesforce Platform
Profile
Standard Profile - No Acct Delete
Role
Customer Support, International
- Next, fill in his Locale settings, including time zone and language.
Field
Value
Time Zone
Pacific Time (America/Los_Angeles)
Locale
English (United States)
Language
English
- Click Save & New. You have one more user to add, then you’re all set. Let’s add sales engineer, Amy Daniels.
Field
Value
First Name
Amy
Last Name
Daniels
Alias
adani
Email
(enter your own email address)
Username
(auto-populates with your email address-replace using formula: first initial and last name of user @your initials and your favorite color.com)Ex:
adaniels@wbyellow.com
Nickname
adaniels
Title
Sales Engineer
Department
Sales
User License
Salesforce Platform
Profile
Standard Profile - No Acct Delete
Role
Western Sales Team
- Fill in her Locale settings, including time zone and language.
Field
Value
Time Zone
Pacific Time (America/Los_Angeles)
Locale
English (United States)
Language
English
- Click Save.
Allow a User to Delete Accounts Using Permission Sets
- From Setup, enter
Permission Sets
in the Quick Find box and select Permission Sets.
- Click New and complete the Create screen.
- Label:
Delete Accounts
- Description:
Grants Delete Accounts permission
. Note: A description is required to associate the applicable license to this permission set.
- Select the type of users who will use this permission set: Salesforce Platform.
- Click Save.
- In the Apps section, click Object Settings and select Accounts.
- Click Edit and select the Delete checkbox under Object Permissions. Note: Edit and Read will be automatically checked.
- Click Save and select Manage Assignments.
- Click Add Assignments and in the Action column, check the box next to Noah Larkin.
- Click Next, Assign, and Done.
Log in as Noah Larkin to test the permission set.
- From Setup, search
Users
in the Quick Find box, and select Users.
- In the action column, click Login next to Noah Larkin.
- From the App Launcher, click Accounts. From List View picklist, select All Accounts.
- In the Account Name column, click GenePoint. Notice that the Delete button is now available at the top of the Account Detail page because Noah has the Account: Delete permission set.
- Click Log out as Noah Larkin at the top of the page. Note: If this logs you out of Salesforce, click Launch to relaunch your Trailhead Playground.
You’ve just ensured that Noah Larkin has the appropriate permissions for his role. Now it has come to your attention that some users have multiple roles within the organization. In the next step, you create a role hierarchy and assign users to their new roles.