@Ciyaresh I would suggest using a Watchlist (perhaps based off of the VIP watchlist Template) to store your users or groups.  It will be much easier to update this than trying to update all the rules you created with the list of them in it.

 

Then the rest of your code should work better.  The dynamic will create an array rather than a table while if you use a Watchlist it will be returned as a table with the added bonus of being able to add columns to hold additional information.

www.000webhost.com