Easily assign network a group devices to level 1 users

Hi

I am looking for an easier way than manual assign individual devices to level1 users.
I am using AD logon and would like to setup specific users to only se certain devices, but it seems like it can only be accomplished by assigning 1 device at a time and that would take forever for 1000 devices.

Can you make a script which can assign a number of networks to level 1 users.

fx.
10.1.0.0/24
10.10.0.0/24
10.40.0.0/24
etc

Best Regards Mogens