# User receiving error message 'You do not have access to the Apex class named 'SharinPixLightningController' when trying to access a SharinPix component. What should I do?

![](/files/xUM2Itap8SP5jAmyiKDd)

Error messages such as '**You do not have access to the Apex class named 'SharinPixLightningController'** ' (or another class name: '*You do not have access to Apex class name \[ApexClassName]* ') mostly occur when a non-admin user try to access a SharinPix component.

This is due to the following Salesforce critical update: **Restrict Access to @AuraEnabled Apex Methods for Authenticated Users Based on User Profile**

To resolve this, simply assign the permission set named **SharinPix Lightning Components** to the user encountering this error message. The SharinPix Lightning Component permission set gives access to SharinPix's Apex classes.

{% hint style="success" %}
This will be automatically activated in August 2020 unless otherwise stated by Salesforce.
{% endhint %}

{% hint style="warning" %}
**Note:**

If the permission set **SharinPix Lightning Components** is not available, kindly update your SharinPix package. You can refer to the following article for more information about how to update the SharinPix package:

[How to update SharinPix package from the AppExchange?](/faqs/how-to-update-sharinpix-package-from-the-appexchange.md)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharinpix.com/faqs/user-receiving-error-message-you-do-not-have-access-to-the-apex-class-named-sharinpixlightningcontro.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
