# Cannot Access Mapped SAML Properties inside Custom Action

**URL:** <https://community.auth0.com/t/cannot-access-mapped-saml-properties-inside-custom-action/63615>\
**Category:** Get Help\
**Tags:** auth0-flows, rules, saml\
**Created:** [May 31, 2021, 10:06pm UTC](https://community.auth0.com/t/cannot-access-mapped-saml-properties-inside-custom-action/63615 "2021-05-31T22:06:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [July 12, 2021, 3:09pm UTC](https://community.auth0.com/t/cannot-access-mapped-saml-properties-inside-custom-action/63615/3 "2021-07-12T15:09:18Z")

</div>

Hi @davidhouseknechtdev ,

Unfortunately I am not aware of a good way to do this within Actions alone currently.

App\_metadata is supposed to only be modified via Rules, Actions, Dashboard or the Management API and not tied to a particular connection, and so it can cause issues if set directly by an external IdP. ([Understand How Metadata Works in User Profiles](https://auth0.com/docs/users/metadata#manage-metadata))

What I would recommend is mapping the claims from your upstream IdP to a custom root profile entry that doesn’t overlap with an Auth0 profile attribute ([User Profile Structure](https://auth0.com/docs/users/user-profile-structure)).

Currently, Actions can only access the attributes that are listed for the relevant trigger’s Event object, e.g the Post Login triggers event object is detailed here:

- [Actions Triggers: post-login - Event Object](https://auth0.com/docs/actions/triggers/post-login/event-object)

Because of this, you would then need a Rule to copy this custom attribute into the user’s app\_metadata so it could be accessed by your Actions:

- [Manage Metadata with Rules](https://auth0.com/docs/users/metadata/manage-metadata-rules#update-metadata)

Sorry for the wait, I hope this is still useful

---

_[View the full topic](https://community.auth0.com/t/cannot-access-mapped-saml-properties-inside-custom-action/63615)._
