Pseudo-Code works wonders..

Describe what you want to do - in English.. (or your language of choice)

Put comment tags in front of the descriptions - makes the code self-commenting.

Add some real code, test, polish, test, polish..

Don't write the entire script - write and test parts. Simulate the part about gathering data and authorization and pre-load your "short list". Write and call the MapResource UDF with the sample data and get that part working the way you want.

Work backwards to the authorization part.. focus on one kind of authentication - InGroup, and then add other authorization methods, one by one as you need them.

Sometimes trying to clear the forest makes it hard to cut down one tree. Focus on the tree, create a clearing, and then expand. ;\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D