Hi,
The .NET provisioning API v2.0 library does allow you to update user
information. However, some operations are not possible like updating
username or reading password:
http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html#API_Operations
The user information is available as properties of UserEntry object
like Name, Login.
For e.g, you can update the 'FamilyName' using the Name property :
AppsService service = new
AppsService("domain.com","[EMAIL PROTECTED]","password");
UserEntry entry = service.RetrieveUser("John");
// Update family name using Name property
entry.Name.FamilyName = "Smith";
entry = service.UpdateUser(entry);
//This will display the updated family name
Console.WriteLine(entry.Name.FamilyName);
-Anirudh
On Sep 30, 11:27 am, noni <[EMAIL PROTECTED]> wrote:
> HI!
>
> Guys,I'm having a hard time in using the updateUser method.. because i
> can't find any method that will set and ge the username, password,
> etc. in the created users.. and based on the docs. it tells that i can
> use retrieveUser to use the UpdateUser.. probably because it return
> UserEntry.. this is my code.
> Im using C#
>
> UserEntry myEntry = new UserEntry;
> UserEntry UpdatedEntry = new UserEntry;
> AppService service = new AppService;
>
> myEntry = service.retrieveUser(user)
> myEntry.getUser().setFamilyName("newuser
>
> myEntry = service.createUser(username, givenName, familyName,
> password)
>
> //this is my problem.. is there any method that will set the new value
> for a certain field (eg.familyName)
> //Do i need to add some namespace and reference to have these
> methods..
> myEntry.getName().setFamily("newfamilyName")
>
> updatedEntry = service.updateUser(myEntry)
>
> THANKS!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---