# \#rules-management-api

**URL:** https://community.auth0.com/tag/rules-management-api/2013.md

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

---

## [Rules - Failed Login Attempts, Alternate Actions?](https://community.auth0.com/t/rules-failed-login-attempts-alternate-actions/102635)

<div class="topic-metadata">

**Author:** [@Sai](https://community.auth0.com/u/Sai)\
**Replies:** 1\
**Last updated:** [March 15, 2023, 9:19pm UTC](https://community.auth0.com/t/rules-failed-login-attempts-alternate-actions/102635 "2023-03-15T21:19:34Z")

</div>

Hi! Is there a way, via the API, to trigger custom actions when the logs collect a user error (failed login, etc)? A post from 2021 on this forum indicated that Auth0 rules do not apply to pre-login scenarios. I am also…

---

## [Unable to make my token dynamic in my rule](https://community.auth0.com/t/unable-to-make-my-token-dynamic-in-my-rule/100693)

<div class="topic-metadata">

**Author:** [@sandT](https://community.auth0.com/u/sandT)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 7:11pm UTC](https://community.auth0.com/t/unable-to-make-my-token-dynamic-in-my-rule/100693 "2023-02-22T19:11:10Z")

</div>

Hello, I created a machine to machine application which help me enable Auth0 management API. from that API a token was generated. Currently in my login rule, the token is hardcoded (copied and paste from the API explorer…

---

## [How to pass data generated on login in SAML assertion?](https://community.auth0.com/t/how-to-pass-data-generated-on-login-in-saml-assertion/94744)

<div class="topic-metadata">

**Author:** [@avii](https://community.auth0.com/u/avii)\
**Replies:** 1\
**Last updated:** [December 8, 2022, 9:54pm UTC](https://community.auth0.com/t/how-to-pass-data-generated-on-login-in-saml-assertion/94744 "2022-12-08T21:54:42Z")

</div>

Hi, I’m really struggling to understand how I am supposed to customize SAML assertions on user login. I get that I can map user attributes to a particular SAML parameter both in the add-on settings and via rules. Howev…
