---
schema_version: "1"
id: 43975bacf15cf9da717f43842bbd83abdfde39267d2cfc652c2946d533841112
title: Access Methods
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_wave_templates/guides/concept/bi-templatesdev-apex-access-class-methods.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/guide/bi-templatesdev-apex-access-class-methods.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2808a759d86d7ea64997fb61e22b3f3e6f0b287f27ea37b800a4e0395e541d4f
products:
  - Analytics Templates Developer Guide
  - analytics
---

# Access Methods

Use the `Access` features with the following methods.

- `checkIntegUserAccessToArrayOfSObjectFields`. Checks an array of sObjectFields from a template answer and returns a list of fields the Integration User doesn't have access to. Requires the variable name, `WaveTemplateInfo`, and `Answers`:

  ```nolang
  global static List<String> checkIntegUserAccessToArrayOfSObjectFields(String variableName, wavetemplate.WaveTemplateInfo template, wavetemplate.Answers answers)
  ```

- `getCountOfRecordsAsIntegUser`. Returns the number of records visible to the Integration User. Use this method to gauge if the number of records is high enough to continue with template processing. There’s a limit of 10K rows. Requires the sObject name to use for the count:

  ```nolang
  global static Integer getCountOfRecordsAsIntegUser(String sObjectName)
  ```

- `integUserHasAccessToSObjectField`. Checks an sObjectField answer to verify that the Integration User has access to it. Requires the variable name, `WaveTemplateInfo`, and `Answers`:

  ```nolang
  global static boolean integUserHasAccesstoSObjectField(String variableName, wavetemplate.WaveTemplateInfo template, wavetemplate.Answers answers)
  ```

- `integUserHasAccessToSObjectField`. Checks a single sObject and one of its fields to verify that the Integration User has access to it. Requires the sObject name and `WaveTemplateInfo`:

  ```nolang
  global static boolean integUserHasAccessToSObjectField(String sObjectName, wavetemplate.WaveTemplateInfo template)
  ```
