fernandoofj / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

RetrieveUser() returns blank GivenName and FamilyName for suspended Gmail users. #631

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

var appService = new AppsService(gaDomain, gaAdminEmail, gaAdminPassword);
var entry1 = appService.RetrieveUser(targetUserName) as UserEntry;
Console.WriteLine("User,{0},{1},{2},{3}", entry1.Login.UserName, 
entry1.Name.GivenName, entry1.Name.FamilyName, entry1.Login.Suspended ? 
"Suspended" : "Active");
entry1.Login.Suspended = true;
entry1.Update();
var entry2 = appService.RetrieveUser(targetUserName) as UserEntry;
Console.WriteLine("User,{0},{1},{2},{3}", entry2.Login.UserName, 
entry2.Name.GivenName, entry2.Name.FamilyName, entry2.Login.Suspended ? 
"Suspended" : "Active");
entry2.Login.Suspended = false;
entry2.Update();

What is the expected output? What do you see instead?

User,0229686,Fred,Smith,Active
User,0229686,,,Suspended

What version of the product are you using? On what operating system?

google-gdata 2.1.0.0 with Visual Studio 2010 on Windows 7.

Please provide any additional information below.

This is connecting to a domain with Google Apps For Education.

Original issue reported on code.google.com by whoisr...@gmail.com on 4 Oct 2012 at 11:03