# context.connectionOptions in Actions

**URL:** <https://community.auth0.com/t/context-connectionoptions-in-actions/78800>\
**Category:** Get Help\
**Created:** [February 23, 2022, 6:26pm UTC](https://community.auth0.com/t/context-connectionoptions-in-actions/78800 "2022-02-23T18:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichalI](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michali/32/12765_2.png) [@MichalI](https://community.auth0.com/u/MichalI)\
**Post date:** [February 23, 2022, 6:26pm UTC](https://community.auth0.com/t/context-connectionoptions-in-actions/78800/1 "2022-02-23T18:26:28Z")

</div>

Hi, I’m going to rewrite our Rules to Actions, but I found that we use context.connectionOptions in Rules. I tried to find related property/object in Actions, but I’m not successful.

So, I would like to ask, is there any option to get domain\_aliases and tenant\_domain in Actions?

Best regards,  
Michal

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 23, 2022, 9:50pm UTC](https://community.auth0.com/t/context-connectionoptions-in-actions/78800/3 "2022-02-23T21:50:47Z")

</div>

Hi @MichalI,

Welcome to the Auth0 Community!

I understand you have questions about migrating your Rules to Actions, specifically, the `context.connectionOptions` object.

First, in Actions, there is not a 1:1 equivalent property to get the _tenant\_domain_ and _domain\_aliases_ from the `event.connection` object. The `event.connection` properties only include:

- event.connection.id
- event.connection.metadata
- event.connection.name
- event.connection.strategy

See [here](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow/event-object) for the complete event object in Actions.

As a workaround, there is the option to [call the Management API in actions](https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947) using the [Get a connection endpoint](https://auth0.com/docs/api/management/v2/#!/Connections/get_connections_by_id). Using this approach, you must pass the `event.connection.id` as the connection ID to get the _tenant\_domain_ and _domain\_aliases_ in the `options` object of the response.

Hoped this helps!

Please let me know if you need more clarification or have any questions.

Thank you.

---

<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:** [March 10, 2022, 9:51pm UTC](https://community.auth0.com/t/context-connectionoptions-in-actions/78800/5 "2022-03-10T21:51:16Z")

</div>

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