A way to add to Granular security in PW admin

Hi, I've had a check through the command list and I don't think it exists but it might be in a command that isn't obvious, is there a way of scripting adding user lists to the granular security of the nodes in PW Admin?  We use this for our different support levels and if we want to release out a new node to one of the levels it's quite time consuming to go onto 40+ datasources and do it manually, so was hoping to script it.

Thanks in advance for any replies