custom schema?

661 views
Skip to first unread message

jzsjr

unread,
Apr 15, 2015, 9:45:26 AM4/15/15
to google-ap...@googlegroups.com
I believe I'm missing the general sense of custom schemas.  I created a schema similar to the example shown in the wiki so it is StudentData with fields id and graduationyear.  Fields were set up as string, restrictive and indexed.  After populating information for one student I was thinking the information would show up in the web UI somewhere (profile etc) but I have not been able to find it. I then moved on to the gam query function gam print users query StudentData.id=111111 and gam print users query StudentData.id='11111' with no luck.  It returns Got 0 users: - primaryEmail.  I tried this with both id and graduation year and it does not bring up the one student with the information.  When I use gam info user xxxy...@xxxx.com it shows the added schema fields with the appropriate information.  

I was also thinking that when you do gam print users allfields todrive that it would show new columns with the custom schema information but it does not.  Please let me know what I'm missing here.  I'm using gam 3.43.

Thanks,
Jim

Jay Lee

unread,
Apr 15, 2015, 6:56:28 PM4/15/15
to google-ap...@googlegroups.com


On Wednesday, April 15, 2015 at 9:45:26 AM UTC-4, jzsjr wrote:
I believe I'm missing the general sense of custom schemas.  I created a schema similar to the example shown in the wiki so it is StudentData with fields id and graduationyear.  Fields were set up as string, restrictive and indexed.  After populating information for one student I was thinking the information would show up in the web UI somewhere (profile etc) but I have not been able to find it.

Custom Schema Data doesn't show in Directory contacts at this time.
 
I then moved on to the gam query function gam print users query StudentData.id=111111 and gam print users query StudentData.id='11111' with no luck.  It returns Got 0 users: - primaryEmail.  I tried this with both id and graduation year and it does not bring up the one student with the information.  When I use gam info user xxxy...@xxxx.com it shows the added schema fields with the appropriate information.  
 
I was noticing a few issues this way also but it seems fixed now. Can you try again?

I was also thinking that when you do gam print users allfields todrive that it would show new columns with the custom schema information but it does not.  Please let me know what I'm missing here.  I'm using gam 3.43.

Try:

gam print users allfields custom all

in order to pull all the custom fields for users also.

Jay

 

Thanks,
Jim

jzsjr

unread,
Apr 16, 2015, 7:08:06 AM4/16/15
to google-ap...@googlegroups.com
Jay,

I'm still not having luck with the query command.  Thank you for the information about adding "custom all" to the print todrive command.  That worked perfectly.  

Jim


On Wednesday, April 15, 2015 at 9:45:26 AM UTC-4, jzsjr wrote:

Trevor Smith

unread,
Mar 15, 2017, 12:41:08 PM3/15/17
to GAM for G Suite
I would love to know the format to specify it to only return a single custom field and not all of them.

Ross Scroggs

unread,
Mar 15, 2017, 7:31:01 PM3/15/17
to google-ap...@googlegroups.com
Trevor,

Rather that custom all, say custom <SchemaName>

Ross
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/c07b7cfa-9422-43ea-a523-ec7a2d4be0d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trevor Smith

unread,
Mar 15, 2017, 8:31:41 PM3/15/17
to google-ap...@googlegroups.com
But instead of listing all the fields under one schema.   I only want to list a single field under a schema.

Schema-A
 Field1
 Field2
 Field3

I only want a report including Schema-A.Field2



You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/ge45skht6V4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Ross Scroggs

unread,
Mar 15, 2017, 9:05:47 PM3/15/17
to google-ap...@googlegroups.com
Trevor,

That's not possible with the API.

Reply all
Reply to author
Forward
0 new messages