Apps Developer Blog

Information for Google Apps Developers

Domain user management with Apps Script

December 19, 2011
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Administrative APIs , Apps Script

9 comments :

Anonymous said...

This is great! How about DomainUser.lastLogin() fetching a last login Date object? This would be helpful for some of the cases I'm thinking of.

December 19, 2011 at 10:23 AM
Claudio Cherubino said...

Data about the user login activity is not provided by the Provisioning API which this service relies on.

However, your feature request is pretty common and is already tracked at http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=1858

Please star the issue on our issue tracker to have all relevant updates delivered directly to your inbox.
Thanks

Claudio

December 19, 2011 at 10:54 AM
David Cifuentes said...

We are still missing the directory API (domain shared contacts and profiles), it was announced at Google I/O but haven't seen it yet.

December 19, 2011 at 2:26 PM
Jason Kirkland said...

Awesome feature!. Will this work with the DocsList class soon so we (Apps administrators) can manage docs created by users in our domain, via Apps Script?

December 19, 2011 at 5:23 PM
Claudio Cherubino said...

Jason,

What kind of DocsList/Provisioning integration are you interested in?
Please describe your use case so that we can correctly prioritize our future development.
Thanks

December 20, 2011 at 2:44 AM
JorgeRSG said...

I don't get the point of having a method setStorageQuota if it doesn't do anything at all, when will this feature will be really available?

What about a method named usedQuota, that would help admins to identify users approaching their limit

December 30, 2011 at 12:48 PM
Claudio Cherubino said...

This Apps Script service relies on the Provisioning API (http://code.google.com/googleapps/domain/provisioning_API_v2_developers_guide.html) and the ability to set the user's disk space quota using this API depends on your Google agreement for your account.

December 31, 2011 at 8:38 AM
Claudio Cherubino said...

Jorge,

I just realized I didn't answer your second question about the usedQuota field.
The Provisioning API doesn't return that information, but you can get the data you need with the Reporting API (http://code.google.com/googleapps/domain/reporting/google_apps_reporting_api.html).
In particular, you can request the Account Report and check the usage_in_bytes field.

Please note the Reporting API doesn't provide real-time data, but reports are generated once a day ("...reports for a particular day are not available until 12 p.m. Pacific time the following day...").
Feel free to ask if you need more details

January 4, 2012 at 9:10 AM
Admin said...

A year later and this API still doesn support secondary domains .
Any suggestions to workaround this limitation?

December 24, 2012 at 12:11 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Admin SDK 4
  • Administrative APIs 26
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Google+ 3
  • googlenew 1
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms