I think you will probably want to add some tests for group membership before mapping a share. For example, you probably only want to give access to the finance share to those people in the finance group? So, you can take Shane's example above and add a test for group membership before deciding whether to map or not.