Hi fatima,

Perhaps you can use email settings api.
For more details, please refere to following address:
http://code.google.com/apis/apps/email_settings/developers_guide_protocol.html
http://code.google.com/apis/apps/libraries_and_samples.html#emailsettings

Regards,

-- Takashi Matsuo



On Fri, Mar 13, 2009 at 3:22 AM, fatima <[email protected]> wrote:
>
> Hi Takashi,
> that seems to work really well. I can go through all accounts, pick
> the ones that have not been accessed yet and set their password to
> todays date as password. Any new user can have a default password set
> up and should get rid of our manually changing passwords for people
> logging in for the first time.
> I also wanted to set some of their Settings in the mailbox at the time
> the account is created. Any idea how i could do that?
>
> Thanks for all your input
>
> fatima
>
> On Mar 11, 8:53 pm, Takashi Matsuo <[email protected]> wrote:
>> Hi fatima,
>>
>> The login element also has the attribute 'agreedToTerms'.
>> You can use this attribute to know whether the account is newly created or 
>> not.
>>
>> My pseudo code(very pythonic):
>>
>> ----------------------------------------------------------------
>> for entry in get_all_entries():
>>   if entry.login.agreedToTerms == 'false' and \
>>     entry.login.changePasswordAtNextLogin == 'false':
>>
>>   entry.login.changePasswordAtNextLogin = 'true'
>>   update_entry(entry)
>> ----------------------------------------------------------------
>>
>> hope it helps.
>>
>> Regards,
>>
>> -- Takashi Matsuo
>>
>>
>>
>> On Thu, Mar 12, 2009 at 6:18 AM, fatima <[email protected]> wrote:
>>
>> > Yes i would use that to force the user to change the password on first
>> > login but i need some variable to figure out which one is a new
>> > account and then change that password, i know the administration
>> > dashboard shows whether a password has been set by an administrator or
>> > is a temporary password, i need something like that
>> > thanks,
>> > fatima
>>
>> > On Mar 11, 8:14 am, Takashi Matsuo <[email protected]> wrote:
>> >> Hi,
>>
>> >> Perhaps you can update user with the Attribute
>> >> 'changePasswordAtNextLogin' of the Element 'login' set to 'true',
>> >> using provisioning API.
>>
>> >> That force the user to change his/her password at next login.
>>
>> >> hope it helps
>>
>> >> -- Takashi Matsuo
>>
>> >> On Wed, Mar 11, 2009 at 5:21 AM, fatima <[email protected]> wrote:
>>
>> >> > We are planning to synchronize creating accounts with our Active
>> >> > Directory using the Google Directory Sync for provisoining accounts
>> >> > after a fixed interval. With active directory GDS does not use the
>> >> > password field and generates a random password for each user.
>> >> > I need to be able to change those passwords before allowing users to
>> >> > log in and change their own passwords. I havent been able to find any
>> >> > creation or time information on which i could make a decision about
>> >> > changing passwords after every sync.
>> >> > Any suggestions? I am using the Java provisioning API, only because it
>> >> > had the group creation which python didnt. I would also like to set
>> >> > certain Settings in the new accounts that are created using Email
>> >> > Settings API. I have seen the XML posts for it but has anyone used it
>> >> > in Java.
>>
>> >> > Thanks
>>
>> >> > fatima- Hide quoted text -
>>
>> >> - Show quoted text -- Hide quoted text -
>>
>> - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to