# Webhook and SSO user mapping

**URL:** <https://meta.discourse.org/t/webhook-and-sso-user-mapping/68615>\
**Category:** SSO\
**Created:** [Août 23, 2017, 2:00 UTC](https://meta.discourse.org/t/webhook-and-sso-user-mapping/68615 "2017-08-23T14:00:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Vaishak\_Kallore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vaishak_kallore/32/120380_2.png) [@Vaishak\_Kallore](https://meta.discourse.org/u/Vaishak_Kallore)\
**Post date:** [Août 24, 2017, 8:22 UTC](https://meta.discourse.org/t/webhook-and-sso-user-mapping/68615/2 "2017-08-24T08:22:20Z")

</div>

I have a solution here, not straight forward, but I feel it should work.

**Step 1**

1. Create another webhook which will be triggered on _ **User Event** _
2. Disable _email editable_ option for users
3. When the webhook triggers, take user email address and update user’s forum ID in user database.

**Step 2**

1. When user login in the mobile application, get user’s FCM/GCM ID
2. Update FCM/GCM ID user database
3. When topic/post event trigerrs  
**a)** Send to all users through _topics_ subscription, mention user’s FCM/GCM ID in data payload and skip showing the notification to that user  
**OR**  
**b)** Get users who are eligible to get notifications (having mobile app) except the one who has posted/replied and send to others (This is not a scalable solution, I suppose)

Any other suggestions or straight forward methods/approach available?

---

_[View the full topic](https://meta.discourse.org/t/webhook-and-sso-user-mapping/68615)._
