I want to query the RoleInTerritory2 field from UserTerritory2Association sObject. I am logged in as System Admin profile but still not able to query this field. Starnge thing here is that I am able to query this via developer console. Does anyone have any idea reagrding it? It gives me an error : No such column 'RoleInTerritory2' on entity 'UserTerritory2Association'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.