# \#custom-webtasks

**URL:** https://community.auth0.com/tag/custom-webtasks/1946.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Migration from Cognito Using Actions](https://community.auth0.com/t/migration-from-cognito-using-actions/129105)

<div class="topic-metadata">

**Author:** [@jmusits](https://community.auth0.com/u/jmusits)\
**Replies:** 3\
**Last updated:** [April 16, 2024, 8:15pm UTC](https://community.auth0.com/t/migration-from-cognito-using-actions/129105 "2024-04-16T20:15:55Z")

</div>

In reading through this knowledge base article, it looks like the Automatic migration of Cognito users to Auth0 utilizes Rules / Hooks, which are marked as deprecated and soon to be EOL’d here and here. Is it possible t…

---

## [Converting rule to action, how to deal with user.upn?](https://community.auth0.com/t/converting-rule-to-action-how-to-deal-with-user-upn/147315)

<div class="topic-metadata">

**Author:** [@daniel.ekbom](https://community.auth0.com/u/daniel.ekbom)\
**Replies:** 4\
**Last updated:** [October 18, 2024, 2:14pm UTC](https://community.auth0.com/t/converting-rule-to-action-how-to-deal-with-user-upn/147315 "2024-10-18T14:14:40Z")

</div>

Ready to post? :mag: First, try searching for your answer. I am converting the following rule to action: function (user, context, callback) { user.email = user.email || user.upn; callback(null, user, context); } I…

---

## [Migrating M2M hook with custom response to actions](https://community.auth0.com/t/migrating-m2m-hook-with-custom-response-to-actions/124829)

<div class="topic-metadata">

**Author:** [@nicolaj.vinholt](https://community.auth0.com/u/nicolaj.vinholt)\
**Replies:** 1\
**Last updated:** [January 16, 2024, 10:12am UTC](https://community.auth0.com/t/migrating-m2m-hook-with-custom-response-to-actions/124829 "2024-01-16T10:12:35Z")

</div>

We are in the final stages of moving all our hooks to actions, and have just one line remaining on clients credentials exchange. In this hook we modify the response to include the scope, which is currently relied on for …

---

## [Remove attributes from user rule template migration to login flow action script not working](https://community.auth0.com/t/remove-attributes-from-user-rule-template-migration-to-login-flow-action-script-not-working/109788)

<div class="topic-metadata">

**Author:** [@richard.sanigar](https://community.auth0.com/u/richard.sanigar)\
**Replies:** 2\
**Last updated:** [July 7, 2023, 8:40am UTC](https://community.auth0.com/t/remove-attributes-from-user-rule-template-migration-to-login-flow-action-script-not-working/109788 "2023-07-07T08:40:30Z")

</div>

Hi Auth0 Community I successfully created a rule based on the Remove attributes from user template function removeUserAttribute(user, context, callback) { const blacklist = \['nickname','picture'\]; Object.keys(user…

---

## [Convert rules to action help](https://community.auth0.com/t/convert-rules-to-action-help/109394)

<div class="topic-metadata">

**Author:** [@adam.bowler](https://community.auth0.com/u/adam.bowler)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 8:50am UTC](https://community.auth0.com/t/convert-rules-to-action-help/109394 "2024-10-18T08:50:01Z")

</div>

I’m trying to convert this rule function (user, context, callback) { user.email = user.email || user.upn; callback(null, user, context); } But I can’t figure out how to get the upn in an action, can someone help?

---

## [Will rules be depricated?](https://community.auth0.com/t/will-rules-be-depricated/94376)

<div class="topic-metadata">

**Author:** [@office\_bot](https://community.auth0.com/u/office_bot)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 6:02pm UTC](https://community.auth0.com/t/will-rules-be-depricated/94376 "2022-11-14T18:02:27Z")

</div>

Will rules be deprecated in favor of actions? If so when? I just say one post her in community mentioning second half of 2022. Do we have exact date?
