# 4.17 Setup GDPR Compliant feature

This feature sends email notifications when a user account is deactivated or if there's any brute force activity detected. It ensures that users are kept informed about any actions taken on their data.

To align with GDPR Compliance guidelines, follow the below steps -

1. Click on Realm settings.

   <figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2Fnwx4rtowDlDZLMjW6XzM%2Fimage.png?alt=media&#x26;token=99c2a171-2ed7-4519-9b26-359e12a7a49d" alt=""><figcaption><p>Fig. 4.17.a: Navigating to Realm Settings</p></figcaption></figure>
2. Click on the Events tab.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2F4Ivc5bT9WpNdJMBskLNU%2F50.png?alt=media&#x26;token=22543473-8215-4cdc-ae94-a048a56e5705" alt=""><figcaption><p>Fig. 4.17.b: Navigating to Events tab in Realm Settings</p></figcaption></figure>

3. For Event Listeners, search for gdpr\_event\_listener and select it.

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FpPOhrJNzNF4o2BR6LfSH%2F51.png?alt=media&#x26;token=ff91f313-457d-4ac6-90a6-bc3c08b38bcf" alt=""><figcaption><p>Fig. 4.17.c: Adding 'gdpr_event_listener' to event listeners</p></figcaption></figure>

<figure><img src="https://1778922777-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3EUK5AUZv0UVaI5S0CTM%2Fuploads%2FvzknD0tdT4hNvzGiqXaa%2F52.png?alt=media&#x26;token=38d33daf-f4e5-45ad-9304-2612510e85cf" alt=""><figcaption><p>Fig. 4.17.d: Saving the configuration</p></figcaption></figure>

4. Click on Save.

This will run once every 5 minutes. In case any brute-force happens or the user account gets deactivated, it will send one notification mail to the User.

\\
