Skip to main content
The Trailblazer Community will undergo maintenance on Saturday, November 15, 2025 and Sunday, November 16, 2025. Please plan your activities accordingly.

Restrict Login Hours

Learning Objectives

In this project, you’ll:

  • Restrict when users can log in to an organization.
  • Determine the levels of access users have to objects.
  • Set up a data access model using the role hierarchy, sharing, and teams.
  • Control the levels of access users have to fields.

Introduction

The CEO of AW Computing, Jon Wiseman, has some security concerns. He wants to reduce the chances of unauthorized access to data housed in Salesforce.  

Not everyone in your organization should have the same level of access. Support users should only be able to log in during the company’s standard office hours. All other users should have 24/7 access and be able to log in on the company network and the VPN.

Jon has enlisted your awesome admin skills to help resolve this issue. In this project, you learn to secure your Salesforce organization by controlling exactly what data your users have access to within it. 

Organizational setup image, showing the Field nested inside the Record, which is nested inside the Object.

Throughout this project, this org chart will be revisited to see how you can set access at each of these levels.

Create a New Trailhead Playground

For this project, you need to create a new Trailhead Playground. Scroll to the bottom of this page, click the playground name, then click Create Playground. It typically takes 3–4 minutes to create a new Trailhead Playground.

Note: Yes, we really mean a brand-new Trailhead playground! If you use an existing org or playground, you can run into problems completing the steps in this project.

Restrict Login Hours on the Support Profile

  1. Click the Setup gear Setup icon and select Setup.
  2. Enter Profiles in the Quick Find box, and select Profiles.
  3. Click Custom: Support Profile.
  4. Under Login Hours click Edit and set up the schedule.
    Note: Ensure the listed time is Pacific [Standard or Daylight] Time (America/Los_Angeles). If not, adjust the organization's time zone to Pacific Time (America/Los_Angeles) before adjusting the login hours: Setup > Company Information > Edit > Under Locale Settings, adjust the Default Time Zone to Pacific [Standard or Daylight] Time (America/Los_Angeles) > Save. If need be, adjust your personal information in the org: click your profile picture in the upper right corner > click Settings > select Language & Time Zone from the menu on the left > select Pacific [Standard or Daylight] Time.

    Field

    Value

    Sunday

    12:00 AM to 12:00 AM

    Monday

    8:00 AM to 6:00 PM

    Tuesday

    8:00 AM to 6:00 PM

    Wednesday

    8:00 AM to 6:00 PM

    Thursday

    8:00 AM to 6:00 PM

    Friday

    8:00 AM to 6:00 PM

    Saturday

    12:00 AM to 12:00 AM

  1. Click Save.

Now that you’ve restricted the login hours for users, move on to the next step, where you continue to enhance security in the AW Computing org by adding new users and setting their security levels using permission sets. 

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback