Implement role related functions as context