> ## Documentation Index
> Fetch the complete documentation index at: https://landinglens.docs.landing.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LLENS_PUBLIC Application Role

export const vp = 'Visual Prompting';

export const smartLabel = 'Smart Labeling';

export const productLL = 'LandingLens';

export const mi = 'Mobile Inference';

export const llsf = 'LandingLens on Snowflake';

export const companyName = 'LandingAI';

*This article applies to these versions of LandingLens:*

<table>
  <thead>
    <tr>
      <th>LandingLens</th>
      <th>LandingLens on Snowflake</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td><span class="cross-icon">✖</span></td>
      <td><span class="check-icon">✓</span></td>
    </tr>
  </tbody>
</table>

Many functions for managing {llsf} require the LLENS\_PUBLIC application role, including the ability to:

* [Run inference with SQL commands](./run-inference-with-sql-commands)
* [Suspend and resume the LandingLens app](./credit-management)

Application roles can't be granted directly to users, so you must grant LLENS\_PUBLIC to an account role (or to another application role that is then granted to an account role).

For example, the following commands create an account role called LANDINGLENS\_EXTERNAL\_ACCESS, grant that role to a user, and then grant the application role to the account role. Replace `<user_name>` with the name of the Snowflake user, and `APP_NAME` with the name of your LandingLens instance. To locate the name, go to [Name of LandingLens Instance](./app-name).

```bash theme={null}
CREATE ROLE LANDINGLENS_EXTERNAL_ACCESS;
GRANT ROLE LANDINGLENS_EXTERNAL_ACCESS TO USER <user_name>;
GRANT APPLICATION ROLE APP_NAME.LLENS_PUBLIC TO ROLE LANDINGLENS_EXTERNAL_ACCESS;
```

<Info>Only users with certain access can grant application roles. To see the requirements, refer to the [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/sql/grant-application-role).</Info>
