---
title: Scope evaluation scripting API
description: The following bindings are available to Scope evaluation scripts:
component: pingoneaic
page_id: pingoneaic:am-scripting:scope-evaluation-api
canonical_url: https://docs.pingidentity.com/pingoneaic/am-scripting/scope-evaluation-api.html
---

# Scope evaluation scripting API

The following bindings are available to [Scope evaluation](../am-oauth2/plugins-scope-evaluator.html) scripts:

|   |                                                                                                                                                                                                                                                                                                   |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | This script can be either a legacy or a next-generation script. It has access to all the [common bindings](script-bindings.html) for its scripting context.Learn about converting existing scripts in [Migrate OAuth scripts to next-generation scripts](access-token-modification-migrate.html). |

| Binding       | Description                                                                                                                                                                         | Legacy type                                                                                  | Next-generation type                                                                                                             |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `accessToken` | The OAuth 2.0 access token.Find examples of how to use the binding in [Modify an access token](access-token-modification-api.html#atmapi-modify-access-token).                      | An [AccessToken](../_attachments/apidocs/org/forgerock/oauth2/core/AccessToken.html) object. | A wrapper object that lets you access [AccessToken](../_attachments/apidocs/org/forgerock/oauth2/core/AccessToken.html) methods. |
| `identity`    | Represents an identity that Advanced Identity Cloud can access.Find examples of how to use the binding in [Access profile data](access-token-modification-api.html#atmapi-profile). | An [AMIdentity](../_attachments/apidocs/com/sun/identity/idm/AMIdentity.html) object.        | A wrapper object for a scripted identity.                                                                                        |
