UserSettings API not working with ClientLogin

20 views
Skip to first unread message

Marco Zanini

unread,
Mar 24, 2012, 8:27:49 AM3/24/12
to google-app...@googlegroups.com
Hi to all, I'm trying to use UserSettings class from gdata API to force the user to change password at next login, but even if the execution goes on without errors, it seems there are no effects. This is a snipplet of my code:
userService = new UserService(StaticResources.APPLICATION_NAME);
userService.setUserCredentials(StaticResources.ADMIN, StaticResources.ADMIN_PASSWORD);
URL retrieveUrl = new URL(USER_MANAGEMENT_URL + "/" + username);

UserEntry userEntry = userService.getEntry(retrieveUrl, UserEntry.class);
userEntry.getLogin().setChangePasswordAtNextLogin(true);

URL updateUrl = new URL(USER_MANAGEMENT_URL + "/" + username);

return userService.update(updateUrl, userEntry);

This return no errors but no changes on GApps are made. What happened? Must the application name be registered with Google? 

I'm using Google Apps for business.

Claudio Cherubino

unread,
Mar 24, 2012, 3:08:33 PM3/24/12
to google-app...@googlegroups.com
Hi Marco,

Are you using Single Sign-On in your domain?
If so, passwords are managed by your Identity Provider and settings the force change password flag on the Google side does nothing.

Claudio

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/aWPks8jqTkEJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Marco Zanini

unread,
Mar 24, 2012, 3:14:40 PM3/24/12
to google-app...@googlegroups.com
You're right! You immediately catched the point. Silly me, I have to proceed in another way. May thanks! 

Marco
Reply all
Reply to author
Forward
0 new messages