---
title: IDP attribute mapper scripting API
description: Use scripting to map identity provider attributes in SAML 2.0 federation scenarios
component: pingam
version: 8
page_id: pingam:am-scripting:saml2-idp-attribute-mapper-api
canonical_url: https://docs.pingidentity.com/pingam/8.1/am-scripting/saml2-idp-attribute-mapper-api.html
llms_txt: https://docs.pingidentity.com/pingam/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2026-06-01T14:34:20Z
page_aliases: ["scripting-guide:saml2-idp-attribute-mapper-api.adoc"]
superseded_by: https://docs.pingidentity.com/pingam/8.1/am-scripting/saml2-idp-attribute-mapper-api.html
---

# IDP attribute mapper scripting API

|   |                                                                                                                                                                              |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | The IDP attribute mapper script is a legacy script and therefore has access to all the *legacy* [common bindings](script-bindings.html) in addition to those described here. |

| Binding                          | Description                                                                                                                                                                                                                                                            |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `hostedEntityId`                 | The entity ID for the hosted IDP.                                                                                                                                                                                                                                      |
| `idpAttributeMapperScriptHelper` | An [IdpAttributeMapperScriptHelper](../_attachments/apidocs/com/sun/identity/saml2/plugins/scripted/IdpAttributeMapperScriptHelper.html) instance containing methods used for IDP attribute mapping.                                                                   |
| `remoteEntityId`                 | The remote entity ID.                                                                                                                                                                                                                                                  |
| `session`                        | Contains a representation of the user's single sign-on session object. Refer to the [SSOToken](../_attachments/apidocs/com/iplanet/sso/SSOToken.html) interface for information about SSO token and authentication information, as well as session-related properties. |
