2013-04-10 45 views
1

我正在研究一個密碼重置應用程序,該應用程序適用於Google域。我使用.net配置API。我瞪着眼睛試了一下,但沒有找到任何方法來更改密碼。如何使用.net的Google.GData.Apps更改密碼

以下鏈接用於https://developers.google.com/google-apps/provisioning/#updating_a_user_account

+0

展示你的工作,告訴人們你嘗試過什麼。 [常見問題]和[問] – 2013-04-10 10:55:34

+0

如果它不在API中,您可能不能。你能鏈接到你的問題的API文檔嗎? – Rup 2013-04-10 11:18:19

+0

@Rup我編輯我的問題,並添加到目前爲止我使用的鏈接。 – 2013-04-12 06:19:29

回答

3

我發現了一個非常簡單的方法

AppsService service = new AppsService("domain", "adminusername", "adminpassword"); 
    UserEntry user = service.RetrieveUser("viresh1"); 
    user.Login.Password = "newpassword"; 
    service.UpdateUser(user);