In this manner, you can directly look up the BSID MAC and determine the location and allowed groups. Split the groups list and do an InGroup - if a group matches, then read the section that combines the group and MAC identities and map the shares listed there.

Trying to combine the group and MAC directly adds unnecessary overhead and complexity. it also provides more flexibility to expand beyond two hard-coded groups.

Simplifies the logic and provides easier growth or adaptation by placing the control (group names) in the data instead of the code.

One note about your code - if a user is a member of multiple groups, then the printer for each group will be mapped. This may or may not be desireable. If it isn't, simply list the groups in order of importance. The code change is simple - Change the For loop slightly, using:

Haha, well I used to be in the IT field so I know the kind of workload you're referring to. But now I work in an optical lab making lenses for glasses. Just a random job as I work towards my electrical engineering degree. Sometimes it's busy and sometimes not so much.

Didn't have the same email account anymore, and to be honest I couldn't even remember what it was until I re-registered and went thru the user list for possible id's lol. Maybe I'll try to get it working again now that I know what it is.

My account name back then was likely Alpo. There was a post just a few months back talking about how long people had been trolling around here... and when I say "6 years" since you were here... it's just mind boggling that I have been here that long (and longer).

Haha well I had to re-create the hotmail account I used to have, but it atleast let me email the pw to myself again. It is weird indeed, just to think it's been that long since I was active on here. Just goes to show the power of the Kix, that it is still so useful today.