# Post login action: "api.saml" not available?

**URL:** <https://community.auth0.com/t/post-login-action-api-saml-not-available/113656>\
**Category:** Product Feedback\
**Tags:** actions\
**Created:** [August 15, 2023, 10:49am UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656 "2023-08-15T10:49:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.rademeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.rademeyer/32/70995_2.png) [@alex.rademeyer](https://community.auth0.com/u/alex.rademeyer)\
**Post date:** [August 15, 2023, 10:49am UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656/1 "2023-08-15T10:49:53Z")

</div>

\*\*Feature:\*\*Post Login Actions. “api.saml” property

**Description:** the documentation for post-login actions references a property called “api.saml”: [Actions Triggers: post-login - API Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/api-object). my interpretation is that this property should allow us to customise the SAML response before sending it.  
Other documentation and community posts, however, claim that this is not possible- so i am skeptical.  
Whenever i try to use the “api.saml” property, the action fails with the error “Cannot read properties of undefined (reading ‘setAttribute’)”.  
Has anyone successfully used this feature? have i misunderstood it? can anyone explain?

**Use-case:** we have to move from rules to actions. Rules can modify the SAML response, but actions?.. unclear.

---

<div class="post-metadata">

**Author:** ![falcon\_8823](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/falcon_8823/32/49986_2.png) [@falcon\_8823](https://community.auth0.com/u/falcon_8823)\
**Post date:** [August 17, 2023, 1:33pm UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656/2 "2023-08-17T13:33:07Z")

</div>

Same here.

The behavior I observe is the same, and the api.saml in the document returns undefined when I actually run it.

---

<div class="post-metadata">

**Author:** ![alex.rademeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.rademeyer/32/70995_2.png) [@alex.rademeyer](https://community.auth0.com/u/alex.rademeyer)\
**Post date:** [August 17, 2023, 2:59pm UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656/3 "2023-08-17T14:59:36Z")

</div>

Update: I actually spoke with Auth0 support yesterday who said:  
No, this feature is not yet available, but SHOULD be available by the end of August (2023).

Very confusing for customers!

---

<div class="post-metadata">

**Author:** ![jonathan.edwards](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jonathan.edwards](https://community.auth0.com/u/jonathan.edwards)\
**Post date:** [September 5, 2023, 9:27am UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656/4 "2023-09-05T09:27:29Z")

</div>

Any update on this?

Same error testing this as of 5th Sep 2023

---

<div class="post-metadata">

**Author:** ![falcon\_8823](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/falcon_8823/32/49986_2.png) [@falcon\_8823](https://community.auth0.com/u/falcon_8823)\
**Post date:** [September 7, 2023, 5:17am UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656/5 "2023-09-07T05:17:21Z")

</div>

I found an article with an update on August 31.

> **[Unlock Deeper Customization in Actions with Three New Capabilities](https://auth0.com/blog/unlock-deeper-customization-in-actions-with-three-new-capabilities/)**
>
> Three new capabilities are all now available in Auth0 Actions.

And it looks like it was changed to `api.samlResponse` instead of `api.saml`.

> **[Actions Triggers: post-login - API Object](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/api-object)**
>
> Learn about the post-login Action trigger's API object.

I was able to confirm that this SAML mapping works for my project.

---

<div class="post-metadata">

**Author:** ![jonathan.edwards](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jonathan.edwards](https://community.auth0.com/u/jonathan.edwards)\
**Post date:** [September 7, 2023, 8:33am UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656/6 "2023-09-07T08:33:37Z")

</div>

I can confirm ‘api.samlResponse’ worked for me.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 8, 2024, 11:51am UTC](https://community.auth0.com/t/post-login-action-api-saml-not-available/113656/7 "2024-01-08T11:51:03Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
