I have inherited supporting some scrip that run GAM to move Chromebooks to between OUs in our GAFE database. The scrips run nightly on a LINUX server. Like I said I inherited supporting this and my LINUX experience is somewhat limited.
Anyway the process has been working without issue for a while now but something is now messed up and the scrips no longer run. What happens is whenever a GAM command is run I get prompted “Select the authorized scopes for this token.” I can select option “24” Continue and get prompted go to https://goo.gl/*****.
From a windows workstation I use a browser and login to GAFE as the user that is running the LINUX scripts. Next I open the URL https://goo.gl/**** and get prompted to allow access to my google apps. Once I select allow access I receive a code with instructions to “Place copy this code, switch to your application and past it there”. This is exactly the way I believe it should work.
I past the code from my browser to where I am prompted on the UNIX host Enter verification code: and the GAM commands will work. At this point my scrips will now run correctly
My problem is the next day the process fails again and I have to go through getting the code again. As far as I can tell everything is setup correctly. I have the client_secrets.json and oauth2service.json files in the GAM directory where the gam.py file lives. I have tried creating a file called nobrowser.txt and putting the code in it but that does not work. I seem to be missing something basic. Once I go through the process one time and enter the verification code GAM works fine for a while but at some point I believe the token expires and I am stuck.
How do I keep the token from expiring or how do I put the code in some sort of file that GAM will reference?
This message has been sent by a student at Central Kitsap School District. To report abuse please contact dis-objectio...@ckstudents.org----------------------------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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/270fa915-1a67-40e7-987b-1a35a7e989ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
gam oauth delete
gam oauth create
"28" to continue with default scopes selected (you will need to leave one scope unselected for it to process correctly)gam oauth delete
gam oauth create
"28" to continue with default scopes selected (you will need to leave one scope unselected for it to process correctly, it defaults to Notifications API being unselected)Kevin,Authorizing the scopes (with or without a browser) creates a file named oauth2.txt which should reside in the same location as client_secrets.son and oauth2service.json. Do you have this file?Ross
On Tue, Feb 23, 2016 at 12:01 PM, Kevin Kenneally <kev...@ckschools.org> wrote:
I have inherited supporting some scrip that run GAM to move Chromebooks to between OUs in our GAFE database. The scrips run nightly on a LINUX server. Like I said I inherited supporting this and my LINUX experience is somewhat limited.
Anyway the process has been working without issue for a while now but something is now messed up and the scrips no longer run. What happens is whenever a GAM command is run I get prompted “Select the authorized scopes for this token.” I can select option “24” Continue and get prompted go to https://goo.gl/*****.
From a windows workstation I use a browser and login to GAFE as the user that is running the LINUX scripts. Next I open the URL https://goo.gl/**** and get prompted to allow access to my google apps. Once I select allow access I receive a code with instructions to “Place copy this code, switch to your application and past it there”. This is exactly the way I believe it should work.
I past the code from my browser to where I am prompted on the UNIX host Enter verification code: and the GAM commands will work. At this point my scrips will now run correctly
My problem is the next day the process fails again and I have to go through getting the code again. As far as I can tell everything is setup correctly. I have the client_secrets.json and oauth2service.json files in the GAM directory where the gam.py file lives. I have tried creating a file called nobrowser.txt and putting the code in it but that does not work. I seem to be missing something basic. Once I go through the process one time and enter the verification code GAM works fine for a while but at some point I believe the token expires and I am stuck.
How do I keep the token from expiring or how do I put the code in some sort of file that GAM will reference?
--------------------------------------------------------------------------------------------------------------
This message has been sent by a student at Central Kitsap School District. To report abuse please contact dis-objectionablecontent@ckstudents.org--------------------------------------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@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/270fa915-1a67-40e7-987b-1a35a7e989ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


This message has been sent by a student at Central Kitsap School District. To report abuse please contact dis-objectio...@ckstudents.org--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------This message has been sent by a student at Central Kitsap School District. To report abuse please contact dis-objectio...@ckstudents.org----------------------------------------------------------------------------------------------------------------
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Manager" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/-Yz-OQh8Xr0/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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/468c58c5-5d27-4d16-b08d-178df487a8a7%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
How would I find the gamcache folder on a linux box?
This message has been sent by a student at Central Kitsap School District. To report abuse please contact dis-objectio...@ckstudents.org
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
This message has been sent by a student at Central Kitsap School District. To report abuse please contact dis-objectio...@ckstudents.org
--------------------------------------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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/468c58c5-5d27-4d16-b08d-178df487a8a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Manager" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-apps-manager/-Yz-OQh8Xr0/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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/B57B8389-8A44-49DF-B01E-DC280BA7052A%40gmail.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/BY2PR01MB3486D65E258AFDAEE26D5BED5BB0%40BY2PR01MB348.prod.exchangelabs.com.