Get an agent role
Returns the role associated with the specified agent, including its permission settings.