I have to synchronize the account information in 3 different platforms. I have written a password script that will update the user account information in LDAP, our student information system and Gmail (for the purpose). I had no problem with the old migration API, but it is going away in the coming months.
I have written a new library to use oauth2 and adminSDK to manage my user accounts. While specifying a superadmin account using a service account and preferring account creation and password updates, I works perfectly well with normal accounts, however, it seems that I do not reset my own password (IM an admin).
Things that my library can do so far are: Search, create, update, and delete non-admin accounts that do not work: The administrator can open an account, delete the account, Admin account information change (for example password).
Changing Admin Account Information: "This resource is not authorized to use API" error.
Is there a way to solve this problem? If not, it seriously cripples my ability to use new APIs to manage my users. OK, admin users anyway. I need to work for all the users, even the hands full of administrators. I do not see the point of a service account representing just one administrator account, and then there are no proper rights to change the account information on all accounts, especially when the previous API permitted it.
Please advise.
Itemprop = "text"> < P> I detected my problem.
When I started this project, I created a Google Account for this project and played it Superadman role.
I was reviewing my project today and I was getting the same error while trying to update the administrator accounts. I signed the Gmail account of the project and accepted the terms ...
My library works perfectly now. Yay
Comments
Post a Comment