Suborganization Users - API Assistance

405 views
Skip to first unread message

Vincent82

unread,
Jul 18, 2012, 12:21:17 PM7/18/12
to google-app...@googlegroups.com
I need assistance generating an API that would allow me to retrieve the user information from a particular sub-organization within the domain. I currently have three sub-organizations (Students / Faculty / Staff). I can a bulk export to CSV but all the users in the domain will export. I need to be able to export only the members from a particular sub-organization. Can anyone assist on this.  I appreciate your assistance.

Alexandre Jacquet

unread,
Jul 18, 2012, 7:35:44 PM7/18/12
to google-app...@googlegroups.com
Hello Vincent.

You are able to retrieve all organizational users based on this request.


Retrieving All Organization Users

To retrieve all organization users, call the following method.

To retrieve all organization users, send a GET request to the orguser feed's URI. For the customerId, see Retrieving a customerId. Include the Authorization header as described in Authenticating Requests:


GET https://apps-apis.google.com/a/feeds/orguser/2.0/the customerId?get=all

A successful response returns an HTTP 200 status code found in the Google Data API <a href="//code.google.com/apis/gdata/docs/2.0/reference.html#HTTPStatusCodes"

HTTP status codes documentation. Along with the status code, the response returns an AtomPub entry with the entry elements:


<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns:atom='http://www.w3.org/2005/Atom'
xmlns:apps='http://schemas.google.com/apps/2006'>
 
<entry>
   
<apps:property name="orgUserEmail" value="l...@example.com"
/>
   
<apps:property name="orgUnitPath" value="new_york/hr" />
 
</entry>
 
<entry>
 ...
 
</entry>
 ...
</feed>
Hope it helps.


Alexandre Jacquet
Deployment & Operations
Nubis Partners
Nice 2 Cloud U




On Wed, Jul 18, 2012 at 1:21 PM, Vincent82 <admin...@nycollege.edu> wrote:
I need assistance generating an API that would allow me to retrieve the user information from a particular sub-organization within the domain. I currently have three sub-organizations (Students / Faculty / Staff). I can a bulk export to CSV but all the users in the domain will export. I need to be able to export only the members from a particular sub-organization. Can anyone assist on this.  I appreciate your assistance.

--
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/-/7rL3GsGLj-YJ.
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.

Thibault Mortier

unread,
Jul 19, 2012, 3:36:51 AM7/19/12
to google-app...@googlegroups.com
Hello Vincent,

You could use GAM to print all user in your domain with their associated OU.

Here is how to install GAM if it's the first time you are using it:

Sincerely,

Thibault Mortier
Operations Manager @ revevol 
Run your business on the Cloud with Google 
Tel. : +33 6 49 85 74 83



On 18 July 2012 18:21, Vincent82 <admin...@nycollege.edu> wrote:
I need assistance generating an API that would allow me to retrieve the user information from a particular sub-organization within the domain. I currently have three sub-organizations (Students / Faculty / Staff). I can a bulk export to CSV but all the users in the domain will export. I need to be able to export only the members from a particular sub-organization. Can anyone assist on this.  I appreciate your assistance.

--

Vincent82

unread,
Jul 19, 2012, 3:00:37 PM7/19/12
to Google Apps Domain Information and Management APIs
Thanks Guys .. for your quick Response....!

Thibault --- I followed your suggestion and decided to use GAM, I have
not use it before however is pretty simple to follow and I have
already been able to pull out a few reports. Currently I am able to
pull out "all users" with a Organization Unit Column which is already
better than just bulk export all users from Google Apps without this
info, However is there a way just to pull out users from a particular
Sub-Organization ? without pulling all users along. If possible can
you enlight me with the Syntax that I can use.. Thank you again for
all your help !!!




On Jul 19, 3:36 am, Thibault Mortier <thibault.mort...@revevol.eu>
wrote:
> Hello Vincent,
>
> You could use GAM to print all user in your domain with their associated OU.http://code.google.com/p/google-apps-manager/wiki/ExamplesCSV
>
> Here is how to install GAM if it's the first time you are using it:http://code.google.com/p/google-apps-manager/wiki/GettingStarted
>
> *Sincerely,*
>
> *Thibault Mortier*
> Operations Manager @ *revevol *
> ***Run your business on the Cloud with Google *
> Tel. : +33 6 49 85 74 83www.revevol.eu<http://revevol.fr/>
>
> On 18 July 2012 18:21, Vincent82 <admin_gm...@nycollege.edu> wrote:
>
>
>
> > I need assistance generating an API that would allow me to retrieve the
> > user information from a particular sub-organization within the domain. I
> > currently have three sub-organizations (Students / Faculty / Staff). I can
> > a bulk export to CSV but all the users in the domain will export. I need to
> > be able to export only the members from a particular sub-organization. Can
> > anyone assist on this.  I appreciate your assistance.
>
> > --
> > 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/-/7rL3GsGLj-YJ.
> > 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.- Hide quoted text -
>
> - Show quoted text -

Robert Baker

unread,
Jul 20, 2012, 12:12:19 PM7/20/12
to google-app...@googlegroups.com
Hi Vincent

You can pretty much do all that filtering and more using the 'View All Users' report in the General Audit Tool (Free in the Admin section of the Google Apps Marketplace) - everything filtered is then exportable to a CSV.

Robert.
> > To unsubscribe from this group, send email to

David Hardwick

unread,
Jul 20, 2012, 1:13:14 PM7/20/12
to Google Apps Domain Information and Management APIs
Hi Vincent,

Another great option is FlashPanel. We are the owners of SherpaTools
and FlashPanel is the replacement product.

We are already listed in the Top Installs on the Market Place, very
exciting!

www.flashpanel.com and www.flashpanel.com/marketplace

Best regards,
David
> > > > google-app...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-apps-mgmt...@googlegroups.com.

Mally Mclane

unread,
Jul 20, 2012, 1:14:55 PM7/20/12
to google-app...@googlegroups.com

David,

You've advertised twice at least now. Please stop, you're devaluing the list and your own product.

Reply all
Reply to author
Forward
0 new messages