# Configure agent permissions

Source: https://support.storeconnect.com/articles/configure-agent-permissions · Last modified 21 August 2026

:::note
This topic relates to using AI agents to service your customers, not how to [use agents for building on StoreConnect](use-ai-agents-with-storeconnect).
:::

The following example shows how to set permissions using Apex. You don't have to set them up this way if you are using Flows (the non-code method).

## Set up agent permissions using Apex

### Add Apex classes for permissions

1.  In Salesforce, go to **Users > Permission Sets**.

2.  Locate the permission that was auto-created when you added the agent. It will have the same name. For example, **Steve\_the\_Sales\_Rep**.

3.  Open the permission record. 

4.  Select **Apex Class Access.** (Note: For Flows you would select **Flow Access**)

    ![Add apex class for agent permissions](https://res.cloudinary.com/hzkr6fi81/image/upload/v1765236266/knowledge/AgentforceAI/Build_and_configure_your_agent_1-assign-permission-sets_rzzjcj.png) 

5.  Add the following Apex Classes: 

    1.  s\_c.AFGetPurchasableProductIdsInvocable

    2.  AFPurchasableProducts


### Grant access to StoreConnect objects

1.  Go to the **Object Manager**.

2.  Open the **Product2** object record and and grant read access on the object and on the following object fields:

    -   **s\_c\_\_Available\_On\_\_c**

    -   **s\_c\_\_Display\_Name\_\_c**

    -   **ProductCode**

    -   **s\_c\_\_Features\_Markdown\_\_c**

    -   **s\_c\_\_Subscription\_Term\_\_c**

    -   **s\_c\_\_Subscription\_Term\_Count\_\_c**

    -   **s\_c\_\_Subscription\_Term\_Unit\_\_c**

    -   **s\_c\_\_Subscription\_Type\_\_c**

    ![Read permission for object fields](https://res.cloudinary.com/hzkr6fi81/image/upload/v1765236269/knowledge/AgentforceAI/Build_and_configure_your_agent_2-assign-object-permissions_c58asj.png) 

3.  The PricebookEntry will already have the permissions required as we are only using standard fields in this demo.

4.  Open the **s\_c\_\_Product\_Media\_\_c** object and grant read access on the object and on the following fields:

    -   **s\_c\_\_Position\_\_c**

    -   **s\_c\_\_Product\_Id\_\_c**

5.  Open the **s\_c\_\_Product\_Media\_\_c** object and grant read access on the object and on the following field:

    -   s\_c\_\_Url\_\_c

6.  Open the **s\_c\_\_Products\_Product\_Categories\_\_c** object and grant read access on the object and on the following field: 

    -   Name

7.  Open the **s\_c\_\_Product\_Category\_\_c** object and grant read on the object and on the following fields: 

    -   **s\_c\_\_Active\_\_c**

    -   **s\_c\_\_Product\_Id\_\_c**

    -   **s\_c\_\_Taxonomy\_Name\_\_c**


### Final checks before testing

-   Make sure to assign the permission set to the Agent if it isn’t already.

-   Grant record level access to the Agentforce Agent. This is usually done via sharing rules depending on your individual org setup. 

-   Recommended - While you are on the user page granting access for the agent, update the Name, Alias and Email address of the agent user. Add a valid email address as errors will be reported back this way.

-   Make sure you’ve completed all the set up steps for your StoreConnect store, and you have products, images, etc. that can be accessed by the agent.

---

## Follow StoreConnect

- [Email Newsletter](https://getstoreconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://getstoreconnect.com/partners)
- [News](https://getstoreconnect.com/articles/news)
- [Events](https://getstoreconnect.com/articles/events)
- [Feature Comparison](https://getstoreconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://getstoreconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

---

StoreConnect Support — https://support.storeconnect.com/articles/configure-agent-permissions