|
/ Documentation /Customizations/ How to Allow Agents to Access All Customers

How to Allow Agents to Access All Customers

By default, agents in LatePoint can only view customers who have previously booked an appointment with them. This means agents cannot search for or create bookings for other existing customers.

If you want agents to access all customers, you can enable this functionality by adding a small custom code snippet.

    Step 1: Add the Custom Code

    1. Make sure LatePoint is updated to version 5.7.9 or later. If you are using LatePoint Pro Features, make sure it is updated as well.
    2. Install and activate the Code Snippets plugin, or open your child theme’s functions.php file.
    3. Add a new code snippet and insert the following code.
    4. Save and activate the snippet.
    add_filter( ‘latepoint_enable_all_customer_to_agent’, ‘__return_true’ );


    Step 2: Verify Agent Access

    1. Log in to your WordPress site using an agent account.
    2. Open the customer search section while creating a booking.
    3. Verify that the agent can now search for and select all existing customers, including those who do not have previous bookings with that agent.

    Make sure the required customer-related permissions are enabled for the Agent role under LatePoint > Settings > Roles. This code snippet only changes customer access; all other agent permissions continue to follow the existing role settings.

    What Changes for Agents?

    After enabling this functionality:

    • Agents can search for and view all existing customers in LatePoint, rather than only customers who have previously booked with them.
    • Agents can create bookings for any existing customer, including customers who registered using Google or email login.
    • Agents can still only delete customers who have bookings assigned to them.

    To disable this functionality, simply deactivate or remove the custom code snippet.

    Was this doc helpful?
    What went wrong?

    We don't respond to the article feedback, we use it to improve our support content.