Justin Howard wrote:Does this mean I cannot use the function.
Of course not. How's it supposed to know anything about your database or data model?
Is there a simple way to check if the person is tied to a role, or should I write a custom function checking the principals
You'll need to write code that checks the roles according to the rules of your data model.