static void Main(string[] args) { var myUsername = "******"; var myPassword = "******"; var myProjectSite = "https://mytenant.sharepoint.com/sites/PROJ"; // First create an instance of the class. It will connect to Project Online automatically var userProps = new UserProps(myProjectSite, myUsername, myPassword); // Now we can call one of the methods: userProps.ListContextData(); userProps.ListUserResourceCustomFields("*****@*****.**"); userProps.SetCustomField("*****@*****.**", "New Value"); Console.WriteLine("\n\nReady!"); Console.ReadKey(); }