# Module to check user group ID before allow connecting

**URL:** <https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635>\
**Category:** Hire a Consultant\
**Created:** [May 11, 2016, 7:53am UTC](https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635 "2016-05-11T07:53:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [May 11, 2016, 7:53am UTC](https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635/1 "2016-05-11T07:53:17Z")

</div>

I need a module to to check the user group ID which is passed in the RTMP URL or in the HLS URL.

RTMP format will look like

rtmp://IP:1935/edge/_definst_/?xs=\_we\_OWRkbHBpaWpqY2kxMm85fDE0NjI5ODMxODR8MTA4LjYxLjIyNi4xOXw1NzMzNTMwOGI0ODgzfDYxNDM2NDk0NjMxMzk2ZmRmMDkwNWM5NDA1ZmEwNGVjOTUxOTBmZTY.?userId=

HLS will look like

[http://IP:1935/edge/_definst_/xoaaohmeuajfeyf/playlist.m3u8?xs=\_we\_eG9hYW9obWV1YWpmZXlmfDE0NjI5ODMzMzh8fDU3MzM1M2EyY2JkODl8MTFlMDVkM2Q3OTM1MGEyYTJkMGJkMTAxYjQ5OTI5OTI0MWMxN2IzMg…?userId=](http://IP:1935/edge/_definst_/xoaaohmeuajfeyf/playlist.m3u8?xs=_we_eG9hYW9obWV1YWpmZXlmfDE0NjI5ODMzMzh8fDU3MzM1M2EyY2JkODl8MTFlMDVkM2Q3OTM1MGEyYTJkMGJkMTAxYjQ5OTI5OTI0MWMxN2IzMg..?userId=)

If the return value of userId is equal to the property setting, then allow to play. Otherwise denied it.

Properties should be like

Enabled: true/false : enable this module or not

CheckUrl: [http://mydomain.com/mobile\_app/check\_user\_group.php?userId=](http://mydomain.com/mobile_app/check_user_group.php?userId=) (this php return json format like this {userId: 669, groupId: 3})

AllowReturnGroup: 3 (if return matched 3, then allow)

WriteToLog: true/false

LogLocation: /logs/module\_name.log

Log content should have: IP Timestamp Connect\_URL Status (groupId matched or not match) and other information if needed

---

<div class="post-metadata">

**Author:** ![Roman\_Shmelev](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Roman\_Shmelev](https://community.wowza.com/u/Roman_Shmelev)\
**Post date:** [May 11, 2016, 6:14pm UTC](https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635/2 "2016-05-11T18:14:19Z")

</div>

Hi,

I’m one of oldest authorized Wowza consultants and have built multiple similar modules in the past, so can assist you in this case too.

I have also some suggestions regarding the general architecture of the security mechanism.

Please drop me an email at roman@dynamicstreaming.net to discuss details.

---

<div class="post-metadata">

**Author:** ![Roman\_Shmelev](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Roman\_Shmelev](https://community.wowza.com/u/Roman_Shmelev)\
**Post date:** [May 18, 2016, 10:50am UTC](https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635/3 "2016-05-18T10:50:48Z")

</div>

hmm… looks like your original email got to my spam box, i’ll reply shortly.

---

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [May 11, 2016, 9:28am UTC](https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635/4 "2016-05-11T09:28:50Z")

</div>

Ok I emailed you for quoting

---

<div class="post-metadata">

**Author:** ![Reberto\_Ookla](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Reberto\_Ookla](https://community.wowza.com/u/Reberto_Ookla)\
**Post date:** [May 11, 2016, 10:57am UTC](https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635/5 "2016-05-11T10:57:47Z")

</div>

Is there anyone else/consultant interested in doing the job? Why this user @romano not responding at all to email. If anyone wants to do this job contact me at support@smartkodi.com

---

<div class="post-metadata">

**Author:** ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)\
**Post date:** [May 17, 2016, 2:40am UTC](https://community.wowza.com/t/module-to-check-user-group-id-before-allow-connecting/37635/6 "2016-05-17T02:40:22Z")

</div>

Hello,

If you want to seek out a consultant for this development the best way to do so is to post here:

[http://community.wowza.com/c/-/7](http://community.wowza.com/c/-/7;tabid=70)

Regards,

Jason Hatchett
