# GA post-login custom action actor property

**URL:** <https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268>\
**Category:** Get Help\
**Created:** [May 5, 2021, 2:53pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268 "2021-05-05T14:53:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![meyc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@meyc](https://community.auth0.com/u/meyc)\
**Post date:** [May 5, 2021, 2:53pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/1 "2021-05-05T14:53:08Z")

</div>

Trying to switch over the the GA post-login custom action but I can’t find the .actor property. This was included in the Beta version and gave access to values that were in the query string, body, hostname, ect. The property is now undefined, though the test json in the custom action editor is still showing it. We have Beta actions that make use of this data, but I can’t find it on the new event object and it is not listed in the new documentation. Also the updated documentation makes no mention of how to access secrets.

My issue is similar to what is described here:

> [@Cannot know which website the request comes from with new post-login actions](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260):
>
> Hello Auth0, I just received a notification that the new version of login/post login is updated. I try to use it to replace the legacy action which I created before. But it seems the event data is not exactly the same. For example, we have multiples sites with the same auth0 talent. We are using event.actor.query.redirect\_uri to detect where is the request come from. Then we will do different action for different site’s request. But we lose this data in new login/post login action. As I kno…

Screenshot showing the test data in the editor still lists the actor  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/b/5b2bcf044f8b4cbfc305eb9d1c01d5c8b1f6da1f.png)

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 5, 2021, 7:44pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/3 "2021-05-05T19:44:48Z")

</div>

Hi @meyc,

I have asked the team responsible for Actions about the `event.actor` object in beta vs. the GA version. I will let you know what I hear back.

Also, it looks like you can access secrets with `event.secrets`. I see that when you click on the key icon, it refers to `context.secrets`, but it looks like it is `event.secrets` as you can see in the Logs in this screenshot:

 ![Screen Shot 2021-05-05 at 3.42.24 PM](https://global.discourse-cdn.com/auth0/original/3X/9/8/982c873de1c2cc193cbce42d6fcf27fe4f8f8b0e.png)

---

<div class="post-metadata">

**Author:** ![meyc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@meyc](https://community.auth0.com/u/meyc)\
**Post date:** [May 5, 2021, 7:55pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/4 "2021-05-05T19:55:22Z")

</div>

Thank you @stephanie.chamblee. I did find the secrets. I meant to point out that the the updated documentation for the post-login event does not mention of the .secrets property and should be updated. Also for updates the default json the gets populated under test tab should be updated to the GA event schema. The default still conforms for the beta event.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 5, 2021, 7:56pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/5 "2021-05-05T19:56:28Z")

</div>

That makes sense @meyc, thank you for clarifying! I will reach out to the docs team about that.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 6, 2021, 11:43am UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/6 "2021-05-06T11:43:37Z")

</div>

Hi @meyc,

I heard back from the Engineering team who works on Actions. The test payload still supports the beta schema for Actions at the moment, but they will update it soon to reflect the GA schema to avoid this confusion.

The beta’s `actor` data is split between `event.request` and `event.transaction`. The team is working on adding the `redirect_uri` to `event.transaction` and that will be available soon.

This feedback is very helpful for the team. Thank you!

---

<div class="post-metadata">

**Author:** ![meyc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@meyc](https://community.auth0.com/u/meyc)\
**Post date:** [May 6, 2021, 12:57pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/7 "2021-05-06T12:57:29Z")

</div>

@stephanie.chamblee That doesn’t address my need for the query string and body that are on the actor property. On redirect to auth0 for authentication we add fields on the query string. The user is authenticated and then in the custom action we retrieve that value that was on the qs, do some authorization against an external api and add claims the the id/access token. In the cases of refresh tokens then we typically need the body property.

These values are available in the Beta. They are also available on a rule. We’ve been advised to use custom actions over rules and have developed as such and now those properties are not available. What you specified in you last post doesn’t solve my problem, and we’ve spent a fair amount of time developing and testing custom actions just to have the rug pulled out from under us. So I need to know if the properties I need are going to be there for GA as they are in the beta and on a rule or not.

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 6, 2021, 3:22pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/8 "2021-05-06T15:22:16Z")

</div>

I’m sorry to hear of your frustration regarding the schema change. I’ve passed on your feedback to the team. They’ve explained that they are making an effort to avoid exposing the query and body params directly in Actions so that they are able to deliver new features at a faster pace than what was possible within rules.

At this time, the `query` object is not available in actions, however, the team is working on a solution for exposing custom parameters within Actions. Unfortunately, there is not a public release date for that enhancement yet, but your feedback is very helpful in determining the priority.

---

<div class="post-metadata">

**Author:** ![ggoodman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ggoodman/32/12614_2.png) [@ggoodman](https://community.auth0.com/u/ggoodman)\
**Post date:** [May 11, 2021, 6:31pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/10 "2021-05-11T18:31:11Z")

</div>

Hello @meyc, Actions has gone GA today. Please take a look at the final [Post Login Event Object](https://auth0.com/docs/actions/triggers/post-login/event-object) and our documentation on the [Programming Model Changes](https://auth0.com/docs/actions/programming-model-changes). I think that you will find that your use-case is well supported!

---

<div class="post-metadata">

**Author:** ![meyc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@meyc](https://community.auth0.com/u/meyc)\
**Post date:** [May 11, 2021, 6:48pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/11 "2021-05-11T18:48:01Z")

</div>

Is this how the query and body will be accessed long-term? I discussed this with a couple members of the Auth0 Actions team this past Friday, and they were looking at possibly providing a “params” property that would have the values of the query or body without having to check both properties.

---

<div class="post-metadata">

**Author:** ![ggoodman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ggoodman/32/12614_2.png) [@ggoodman](https://community.auth0.com/u/ggoodman)\
**Post date:** [May 11, 2021, 7:06pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/12 "2021-05-11T19:06:53Z")

</div>

Hi @meyc thanks for taking the time to talk to us on Friday. For the time being we are not planning to expose a sort of union of the query and body parameters. One of the challenges we’ve seen with this sort of feature in the past is that the order of application becomes a source of confusion and sometimes friction. In other words, for a request having both a query and body parameter sharing the same name, which one ‘wins’? We’re trying to build a model with the right primitives before trying to introduce any higher level concepts.

With the launched programming model, you might find something like this gives you the power to choose the order of application between query and body. Note also that they will both always be objects.

```
// Whichever value is spread in last will 'win'.
const combinedParams = {
    ...event.request.query,
    ...event.request.body,
};

```

---

<div class="post-metadata">

**Author:** ![meyc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@meyc](https://community.auth0.com/u/meyc)\
**Post date:** [May 11, 2021, 7:18pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/13 "2021-05-11T19:18:50Z")

</div>

Understood. Having the query and body on the request will meet our needs.

---

<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:** [May 26, 2021, 7:19pm UTC](https://community.auth0.com/t/ga-post-login-custom-action-actor-property/62268/14 "2021-05-26T19:19:45Z")

</div>

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