<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>https://docs.moodle.org/2x/ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Psychoph</id>
	<title>MoodleDocs - Contribucions de l&amp;#039;usuari [ca]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/2x/ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Psychoph"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/Especial:Contribucions/Psychoph"/>
	<updated>2026-07-28T04:38:16Z</updated>
	<subtitle>Contribucions de l&amp;#039;usuari</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/pagemenu:view&amp;diff=81394</id>
		<title>Capabilities/mod/pagemenu:view</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/pagemenu:view&amp;diff=81394"/>
		<updated>2011-02-17T23:56:02Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This permission allows the user to view the page menu. * Defaults ** Administrator: Allow ** Course Creator: Allow ** Teacher: Allow ** Non-editing Teacher: Allow ** Student: Allow ** Gues...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This permission allows the user to view the page menu.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Allow&lt;br /&gt;
** Student: Allow&lt;br /&gt;
** Guest: Allow&lt;br /&gt;
** Authenticated User: Allow&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/pagemenu:manage&amp;diff=81393</id>
		<title>Capabilities/mod/pagemenu:manage</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/pagemenu:manage&amp;diff=81393"/>
		<updated>2011-02-17T23:55:44Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This permission allows the user to manage the page menu, create, update and delete menu links. * Defaults ** Administrator: Allow ** Course Creator: Allow ** Teacher: Allow ** Non-editing ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This permission allows the user to manage the page menu, create, update and delete menu links.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Allow&lt;br /&gt;
** Student: Not set&lt;br /&gt;
** Guest: Not set&lt;br /&gt;
** Authenticated User: Not set&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/block/trouble_ticket:submitticket&amp;diff=81387</id>
		<title>Capabilities/block/trouble ticket:submitticket</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/block/trouble_ticket:submitticket&amp;diff=81387"/>
		<updated>2011-02-17T20:19:06Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This permission allows the user to submit a trouble ticket. * Defaults ** Administrator: Allow ** Course Creator: Allow ** Teacher: Allow ** Non-editing Teacher: Allow ** Student: Allow **...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This permission allows the user to submit a trouble ticket.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Allow&lt;br /&gt;
** Student: Allow&lt;br /&gt;
** Guest: Prevent&lt;br /&gt;
** Authenticated User: Allow&lt;br /&gt;
* Risks&lt;br /&gt;
** Spam: User could send spam to site users or others&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:viewpagesettings&amp;diff=81386</id>
		<title>Capabilities/format/page:viewpagesettings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:viewpagesettings&amp;diff=81386"/>
		<updated>2011-02-17T19:38:40Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This permission allows the user to view the page&amp;#039;s hide and show settings but no other settings for the page.  This also allows a user to view hidden pages. * Defaults ** Administrator: Al...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This permission allows the user to view the page&#039;s hide and show settings but no other settings for the page.  This also allows a user to view hidden pages.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Not set&lt;br /&gt;
** Student: Not set&lt;br /&gt;
** Guest: Not set&lt;br /&gt;
** Authenticated User: Not set&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:managepages&amp;diff=81385</id>
		<title>Capabilities/format/page:managepages</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:managepages&amp;diff=81385"/>
		<updated>2011-02-17T19:37:35Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This permission allows the user to change settings for pages via the manage page settings tab.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Not set&lt;br /&gt;
** Student: Not set&lt;br /&gt;
** Guest: Not set&lt;br /&gt;
** Authenticated User: Not set&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:managepages&amp;diff=81384</id>
		<title>Capabilities/format/page:managepages</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:managepages&amp;diff=81384"/>
		<updated>2011-02-17T19:37:27Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page:  This permission allows the user to change settings for pages via the manage page settings tab. * Defaults ** Administrator: Allow ** Course Creator: Allow ** Teacher: Allow ** Non-editing...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; This permission allows the user to change settings for pages via the manage page settings tab.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Not set&lt;br /&gt;
** Student: Not set&lt;br /&gt;
** Guest: Not set&lt;br /&gt;
** Authenticated User: Not set&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:addpages&amp;diff=81383</id>
		<title>Capabilities/format/page:addpages</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:addpages&amp;diff=81383"/>
		<updated>2011-02-17T19:37:00Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This permission allows a user to add a new page to the flexpage course.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Not set&lt;br /&gt;
** Student: Not set&lt;br /&gt;
** Guest: Not set&lt;br /&gt;
** Authenticated User: Not set&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:editpages&amp;diff=81382</id>
		<title>Capabilities/format/page:editpages</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:editpages&amp;diff=81382"/>
		<updated>2011-02-17T19:36:45Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This permission allows a user to edit a page settings as well as modify what is displayed on the page. * Defaults ** Administrator: Allow ** Course Creator: Allow ** Teacher: Allow ** Non-...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This permission allows a user to edit a page settings as well as modify what is displayed on the page.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Not set&lt;br /&gt;
** Student: Not set&lt;br /&gt;
** Guest: Not set&lt;br /&gt;
** Authenticated User: Not set&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:addpages&amp;diff=81381</id>
		<title>Capabilities/format/page:addpages</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/format/page:addpages&amp;diff=81381"/>
		<updated>2011-02-17T19:35:58Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page:  This permission allows a user to add a new page to the flexpage course. * Defaults ** Administrator: Allow ** Course Creator: Allow ** Teacher: Allow ** Non-editing Teacher: Not set ** St...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; This permission allows a user to add a new page to the flexpage course.&lt;br /&gt;
* Defaults&lt;br /&gt;
** Administrator: Allow&lt;br /&gt;
** Course Creator: Allow&lt;br /&gt;
** Teacher: Allow&lt;br /&gt;
** Non-editing Teacher: Not set&lt;br /&gt;
** Student: Not set&lt;br /&gt;
** Guest: Not set&lt;br /&gt;
** Authenticated User: Not set&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=RSS_in_forums&amp;diff=80694</id>
		<title>RSS in forums</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=RSS_in_forums&amp;diff=80694"/>
		<updated>2011-01-20T23:59:38Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RSS in forums allows users with an RSS aggregator program to be notified of new forum discussions in a similar manner to the emails sent as a result of [[Forum subscription|forum subscriptions]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Enabling RSS==&lt;br /&gt;
&lt;br /&gt;
To enable RSS feeds in forums, an administrator must first enable RSS for the site in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[RSS]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
RSS feeds in forums may then be enabled in the [[Forum settings|forum settings]] via the link in &#039;&#039;Administration &amp;gt; Modules &amp;gt; Activities&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When RSS is enabled, two new settings appear when [[Adding/editing a forum]]. &lt;br /&gt;
&lt;br /&gt;
==RSS feed for this activity==&lt;br /&gt;
&lt;br /&gt;
[[Image:Rss_in_forums.gif|frame|right]] &lt;br /&gt;
&lt;br /&gt;
This turns RSS on or off for this forum. When set to “None,” RSS is disabled. When set to “Discussions,” the RSS feed will send out new discussions to subscribers. When set to “Posts,” the RSS feed will send out any new posts to subscribers. &lt;br /&gt;
&lt;br /&gt;
==Number of RSS recent articles==&lt;br /&gt;
&lt;br /&gt;
This number sets the number of articles that go out via RSS. If this number is set to 5, then the 5 most recent articles will be sent to subscribers. As new posts (or discussions) get added, the oldest post/discussion gets replaced on the RSS feed. If your forum gets a lot of posts every day, you will want to set this number high.&lt;br /&gt;
&lt;br /&gt;
==Podcasting==&lt;br /&gt;
&lt;br /&gt;
From version 1.6 onwards posting audio or video files to a forum will automatically turn the relevant RSS feed into a [[Podcast]].&lt;br /&gt;
&lt;br /&gt;
==Cron==&lt;br /&gt;
The administrative cron (admin/cron.php) must run after the forum is created and posts or discussions have been made.  Otherwise the user will receive an error &amp;quot;Error reading RSS data&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Category: Forum]]&lt;br /&gt;
[[Category:RSS]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/folder:view&amp;diff=80362</id>
		<title>Capabilities/mod/folder:view</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/folder:view&amp;diff=80362"/>
		<updated>2011-01-15T00:33:33Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This allows the user to view the contents of the folder.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows the user to view the contents of the folder.&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/folder:managefiles&amp;diff=80361</id>
		<title>Capabilities/mod/folder:managefiles</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/folder:managefiles&amp;diff=80361"/>
		<updated>2011-01-15T00:33:13Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This allows the user to add, delete, update and move files in the folder.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows the user to add, delete, update and move files in the folder.&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/page:view&amp;diff=80360</id>
		<title>Capabilities/mod/page:view</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/page:view&amp;diff=80360"/>
		<updated>2011-01-15T00:30:46Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This allows a user to view a page resource.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows a user to view a page resource.&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/url:view&amp;diff=80359</id>
		<title>Capabilities/mod/url:view</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/url:view&amp;diff=80359"/>
		<updated>2011-01-15T00:28:07Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This allows the user to view a url resource.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows the user to view a url resource.&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/chat:exportparticipatedsession&amp;diff=80358</id>
		<title>Capabilities/mod/chat:exportparticipatedsession</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/chat:exportparticipatedsession&amp;diff=80358"/>
		<updated>2011-01-14T23:46:00Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This allows the user to export or download the logs for any chat session they participated in.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows the user to export or download the logs for any chat session they participated in.&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/chat:exportsession&amp;diff=80357</id>
		<title>Capabilities/mod/chat:exportsession</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Capabilities/mod/chat:exportsession&amp;diff=80357"/>
		<updated>2011-01-14T23:45:49Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: This allows the user to export or download all chat session logs.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows the user to export or download all chat session logs.&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=74651</id>
		<title>Google Apps Integration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=74651"/>
		<updated>2010-08-10T18:21:05Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Moodlerooms and Google have worked together to build a state of the art integration. The 1.0 version of the integration provides:&lt;br /&gt;
* Automatic creation of users in Google Apps (Google Docs™, Google Calendar™, and Gmail™) when they are created in Moodle&lt;br /&gt;
* Automatic log in to Google Apps when a user logs in to Moodle&lt;br /&gt;
* A Gmail block in Moodle that displays latest Gmail messages on the Moodle Front Page&lt;br /&gt;
* A Google Apps block on the Moodle Front Page displays links to Google Start Page, Google Docs, Google Calendar and Gmail&lt;br /&gt;
* A Moodle app on the Google Apps Start PageGoogle Apps can integrates with Moodle v1.9 and above.  There is a contributed code block that can be added to Moodle and a widget which can be added to Google. It will allow for a single sign-on for users from Moodle to Google.  &lt;br /&gt;
&lt;br /&gt;
=Integration Setup=&lt;br /&gt;
&lt;br /&gt;
There are a few steps involved with setting up the Google Apps Education Edition Integration. This setup should be configured by a technically knowledgeable Moodle administrator.&lt;br /&gt;
&lt;br /&gt;
# Set up Moodle&#039;s Authentication&lt;br /&gt;
# Set up Google&#039;s Authentication&lt;br /&gt;
# Add and configure the Gmail and Google Apps blocks&lt;br /&gt;
# Add and setup the User Sync block (optional; for those who do not have a Google account creation/management process)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
The following must be installed:&lt;br /&gt;
# auth/gsaml&lt;br /&gt;
# blocks/gmail&lt;br /&gt;
# blocks/gdata&lt;br /&gt;
# blocks/gaccess&lt;br /&gt;
# lib/zend&lt;br /&gt;
&lt;br /&gt;
==Generating Private Key and SSL signed Certificate==&lt;br /&gt;
Generate the private key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl genrsa -out googleappsidp.key 1024&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RSA encrypt the key for use with Google Apps:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl rsa -in googleappsidp.key -out googleappsidp.pem&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the .csr fill to generate the certificate from:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl req -new -key googleappsidp.key -out googleappsidp.csr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Encrypt the key in x509 format using the key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl x509 -req -days 9999 -in googleappsidp.csr -signkey googleappsidp.key -out googleappsidp.crt&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Set Up Moodle&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# Log in to Moodle as an Administrator&lt;br /&gt;
# Click Notifications to update block tables&lt;br /&gt;
# Enable the Google Authentication plug-in from the Manage Plug-ins admin page&lt;br /&gt;
# In the Site Admin menu, select &amp;quot;Users.&amp;quot; Next, select &amp;quot;Authentication&amp;quot; and click &amp;quot;Google Authentication.&amp;quot;&lt;br /&gt;
# Enter your Google partner page domain name.&lt;br /&gt;
# Upload private key (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Upload the SSL signing certificate (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
&lt;br /&gt;
==Set Up Google&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# In a new browser window, log in to the Google Apps Control Panel page as an admin. To access this page, you can use this URL -- just change the end to have your partner page domain information: https://www.google.com/a/yourpartnerpagedomainname.com.&lt;br /&gt;
# Click the Advanced tools tab&lt;br /&gt;
# Click the Set up single sign-on (SSO) link next to Authentication&lt;br /&gt;
# Select the checkbox to &amp;quot;Enable Single Sign-on&amp;quot;&lt;br /&gt;
# Enter this URL into the Sign-in page URL text field:&lt;br /&gt;
##  http://&amp;lt;moodle site url&amp;gt;/login/index.php&lt;br /&gt;
# Enter this URL into the Sign-out page URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/logout.php&lt;br /&gt;
# Enter this URL into the Change password URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/change_password.php&lt;br /&gt;
# Generate and upload a verification certificate to Google (X.509 certificate containing the public key)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Click the User Accounts tab&lt;br /&gt;
#This displays existing users as well as a message that says &amp;quot;You can create up to ### user accounts for this domain.&amp;quot; If you are using the Google User Sync block for account management, this number must match or be larger than the number of accounts you plan on creating. Request more accounts if you need them by clicking the request more link on this page.&lt;br /&gt;
# Click the Settings link. Check the box to &amp;quot;Enable provisioning API&amp;quot; (otherwise users will NOT be updated) (Users and Groups &amp;gt; Settings &amp;gt; Enable provisioning API must be checked.)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Next you will add and configure the blocks as well as the Moodle-Google Gadget. See the &amp;quot;Google Blocks Configuration&amp;quot; and &amp;quot;Moodle-Google Gadget Setup&amp;quot; tutorials for more information.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider:==&lt;br /&gt;
* The Gmail feed might not be found and display an error. Troubleshooting tips include:&lt;br /&gt;
** Turn on debugging and the diagnostics page will perform a basic check on the Gmail feed.&lt;br /&gt;
** If you are using the Google User Sync block, check to see if an admin or guest user has been added to the sync. If so, remove them.&lt;br /&gt;
** If you are using the Google User Sync block, be sure your Google user settings are set to allow the number users you are adding to the sync in Moodle. If the number of Moodle users is larger than the number set in Google, then those accounts will not be created or synced (ie, if Google is set to 1000 users and Moodle has 1500, 500 accounts will fail to be created or synced).&lt;br /&gt;
* The location of the Google Authentication Plug-in in the Authentication order is important. Currently, it needs to override a user&#039;s auth type when a Moodle user changes passwords. This behavior may affect M-Net users. A solution for this problem has not yet been found.&lt;br /&gt;
* Do not add a user to the sync if their user name has been deleted from Google. You need to wait five days before adding them to the User Sync.&lt;br /&gt;
* See the Diagnostics Page in the gsaml settings for more information about your setup.&lt;br /&gt;
&lt;br /&gt;
==Gmail Block Settings==&lt;br /&gt;
; OAuth Consumer Secret : This is a string that Google apps generates and is used as a shared secret.&lt;br /&gt;
; Google Apps Domain : your google apps partner domain.&lt;br /&gt;
; Unread Message Count : Here, you can specify the number of unread messages to display in the Gmail block. Leave as zero for no limit.&lt;br /&gt;
; New Window Links : By default, the Gmail links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
; Show first name and Show last name : By default, the author&#039;s first and last name is displayed next to the e-mail title -- uncheck these settings to hide.&lt;br /&gt;
&lt;br /&gt;
To configure the Gmail block:&lt;br /&gt;
# In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
# Define the OAuth consumer secret. To find your consumer secret:&lt;br /&gt;
## Log in to http://www.google.com/a/YOURDOMAIN with your Google Admin account&lt;br /&gt;
## Click Advanced Tools&lt;br /&gt;
## Click Manage OAuth Access&lt;br /&gt;
## Copy the OAuth consumer secret from this screen and paste it into the Moodle text box&lt;br /&gt;
# Enter your Google apps domain&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
==Google Apps Block Settings==&lt;br /&gt;
; New Window Links : By default, the Google Apps links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
&lt;br /&gt;
==User Sync Block Settings==&lt;br /&gt;
; Google Apps username :  This is a username in Google apps that has administrative permissions.  This user should not be in Moodle and not part of the user sync.  This user is used to create, delete and update Google accounts.&lt;br /&gt;
; Google Apps password :  password for the google user to sync with.&lt;br /&gt;
; Google Apps domain : Your partner domain.&lt;br /&gt;
; Use Google Apps e-mail : This is unchecked by default. Checking this box will cause the e-mail address in the Moodle profile to be changed to the Gmail address.&lt;br /&gt;
; Enable events : This is turned on by default, as this causes any change of Moodle profile information to be instantly updated in Google. Unchecking this setting will cause Moodle profile updates to only be changed in Google when the cron runs. This is preferable if you do not want the deletion of Moodle accounts to immediately delete Google accounts.&lt;br /&gt;
; Cron interval : Enter how regularly (in minutes) you want the cron to run and sync Google and Moodle accounts. This is set to every 30 minutes by default.&lt;br /&gt;
; Cron expire : When the synchronization runs, it locks the cron from being executed again until it has finished. This setting is used to determine when that lock has expired. Consider setting this to a high value, especially on first runs with a lot of users. By default, it is set to 24 hours.&lt;br /&gt;
&lt;br /&gt;
Configuring the Google User Sync Block:&lt;br /&gt;
# Log in to Moodle as an administrator. You must also be an administrator in Google.&lt;br /&gt;
# Click the Add Blocks drop down and choose &amp;quot;Google User Sync.&amp;quot;&lt;br /&gt;
# Click the Settings link in the Google User Sync block.&lt;br /&gt;
# Configure the settings according to your Google Partner page information. You will need to enter the Google administrator user name and password in addition to your Google Partner domain.&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
Confirming the configuration is working:&lt;br /&gt;
# Click the Status link in the Google User Sync block to confirm that the integration was successful.&lt;br /&gt;
# Go to Site Administration &amp;gt; Security &amp;gt; Site policies&lt;br /&gt;
# Check Password Policy and make sure the Set Password Length is set to &amp;quot;6 or greater&amp;quot; (Required for Google&#039;s password policy)&lt;br /&gt;
&lt;br /&gt;
===User Sync Status===&lt;br /&gt;
&lt;br /&gt;
The user sync status will tell you if the integration was successful or not. If there is an error here, it means one of your settings is wrong. Check to make sure the user name and password is correct, &lt;br /&gt;
&lt;br /&gt;
==Moodle-Google Gadget Setup==&lt;br /&gt;
To set up the Moodle-Google gadget, you need to first set up and configure the Google Apps Education Edition Integration. To complete this process, you must be an admin for both the Moodle installation and the Google installation.&lt;br /&gt;
&lt;br /&gt;
# Log in to the Google Control Panel as an admin. Use the link below, substituting your Google domain name for &amp;quot;mroomsdev.com&amp;quot;&lt;br /&gt;
## https://www.google.com/a/mroomsdev.com&lt;br /&gt;
# Click the Service Settings tab, then the Start Page link.&lt;br /&gt;
# Click Customize and Publish&lt;br /&gt;
# Click Select default content&lt;br /&gt;
# Click Refresh default content below to make the Add stuff link appear&lt;br /&gt;
# Click Add stuff&lt;br /&gt;
# Click Add by URL&lt;br /&gt;
# Paste the following URL, substituting your Moodle domain name for &amp;quot;test.mroomsdev.com&amp;quot;&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# Click close&lt;br /&gt;
# Click Back to Homepage&lt;br /&gt;
# You should see the Moodle Gadget appear&lt;br /&gt;
# Lastly, be sure to click the Publish link in the furthest upper right-hand corner.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider==&lt;br /&gt;
&lt;br /&gt;
The Moodle-Google Gadget is a beta prototype. In the future, it may be much more useful. Currently, there is a known bug regarding the Gadget not updating immediately upon install. Developers are looking into it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Gmail Block=&lt;br /&gt;
==Descrption==&lt;br /&gt;
The Gmail block displays an inbox link, along with a list of a customizable number of unread e-mails. This list contains the subject of the e-mail as well as the name of the sender. Each subject is a link, which you can hover over with your mouse to see a summary of the e-mail.&lt;br /&gt;
&lt;br /&gt;
==Granting Access==&lt;br /&gt;
The first time a user uses the Gmail block they will be required to grant the block access to view their Gmail account.  This is required for the 3 legged OAuth connection.  &lt;br /&gt;
&lt;br /&gt;
To grant access perform the following steps:&lt;br /&gt;
# Click the Grant access link in the Gmail Block&lt;br /&gt;
[[Image:tut_img_60.png]]&lt;br /&gt;
## If Google authentication plugin is not configured then you will be asked to login to your site.&lt;br /&gt;
# Click the grant access button. (all of the black lines will be filled in with data about your email or site.&lt;br /&gt;
[[Image:tut_img_61.png]]&lt;br /&gt;
# Once you have granted access you will be shown a success screen an then returned to your Moodle site.  You will not see a list of unread emails in your Gmail block.&lt;br /&gt;
&lt;br /&gt;
=== Using Gmail block ===&lt;br /&gt;
To use the Gmail block&lt;br /&gt;
# Click the subject link of the e-mail you want to open. Click the Inbox link to go directly to your Gmail inbox.&lt;br /&gt;
[[Image:tut_img_gmail_block.png]]&lt;br /&gt;
# This opens the e-mail (or inbox) in a new browser window or tab.&lt;br /&gt;
# When you&#039;re done using Gmail, navigate back to your Moodle window. Unread messages will not update in your Moodle Gmail block until you log out and log back in.&lt;br /&gt;
&lt;br /&gt;
==Refresh Access==&lt;br /&gt;
The Refresh Access Token Link can be used to renew a users access token when it expires or allows a user to deny access to an previously granted token.  User&#039;s should seldom have to click this link to obtain a new access token from Google.&lt;br /&gt;
&lt;br /&gt;
===Technical Notes on the Gmail Block===&lt;br /&gt;
&lt;br /&gt;
* The Gmail block requires the rest of the Google-Moodle SSO system to be functional in order to operate properly. &lt;br /&gt;
* The system does not support Google&#039;s optional custom certificate authentication.&lt;br /&gt;
* If you are experiences SSO errors double check that your server time is in agreement with one of the internets many NTP servers. Your server and Google&#039;s systems must have proper time in order to process SSO requests properly.&lt;br /&gt;
* 2 legged OAuth is no longer supported by Google&#039;s Gmail atom feed and thus has been removed from the system.&lt;br /&gt;
&lt;br /&gt;
=== Regarding General Maintenance ===&lt;br /&gt;
The Gmail block contains a local copy of Mozilla&#039;s Certification Authorities list. Overtime the Authority certificates bundle may need to be updated.  If the Gmail block returns an error regarding SSL you may need to look into this issue.&lt;br /&gt;
&lt;br /&gt;
=Google Apps Block=&lt;br /&gt;
To use the Google Apps block:&lt;br /&gt;
# Click the link of the application you want to use. This will take you directly to it in a new browser window or tab. You can choose from:&lt;br /&gt;
## Gmail&lt;br /&gt;
## Calendar&lt;br /&gt;
## Docs&lt;br /&gt;
# When you&#039;re done using the Google App, navigate back to your Moodle window.&lt;br /&gt;
&lt;br /&gt;
=Logging Out of Google Apps=&lt;br /&gt;
If you click the Sign out link from a Google App, you will be taken to a page confirming that you want to log out.&lt;br /&gt;
&lt;br /&gt;
If you click Yes, it also logs out of Moodle as well and takes you back to the Moodle Front Page. Likewise, if you log out of Moodle, it will also log out of Google. This prevents you from logging out of one system and forgetting to log out of the other. This is especially useful when using a public or shared computer.&lt;br /&gt;
&lt;br /&gt;
If you click No, you will be taken back to the Moodle Front Page.&lt;br /&gt;
&lt;br /&gt;
=Google User Sync=&lt;br /&gt;
&lt;br /&gt;
This block allows you to create and manage Google accounts from Moodle. When a Moodle user is added to the User Sync, their account is automatically created in Google. If their account is deleted in Moodle, it will also be deleted in Google.&lt;br /&gt;
&lt;br /&gt;
Once the block has been configured by a technically knowledgeable Moodle administrator (see &amp;quot;Google User Sync Settings&amp;quot; tutorial), the actual management of users can be performed by anyone with Moodle administrator permissions.&lt;br /&gt;
&lt;br /&gt;
==Adding to the User Sync&lt;br /&gt;
&lt;br /&gt;
# Click the Add users to sync link&lt;br /&gt;
# Use the Moodle filter to locate the users you wish to add. Note: never add a guest user or the main administrator. This will break the syncing process.&lt;br /&gt;
# Select the boxes next to the user names you wish to add. Alternatively, you can click the Add all users button.&lt;br /&gt;
# Click Add users to sync&lt;br /&gt;
# The page will refresh and the users you just added will no longer appear.&lt;br /&gt;
&lt;br /&gt;
==Managing the User Sync==&lt;br /&gt;
&lt;br /&gt;
To view the users currently being synced and remove them, you can use the feature Users being synced.&lt;br /&gt;
&lt;br /&gt;
# Click the Users being synced link.&lt;br /&gt;
# This displays a list of all the users being synced. You can manage which users are displayed by searching with the Moodle filter. You can also display more users per page by using the Page size drop down menu.&lt;br /&gt;
# There are two ways to remove users. You can use the Remove all users button, or you can select specific users and click Remove users from sync.&lt;br /&gt;
# The page will refresh, and the users will no longer appear in the Users being synced tab.&lt;br /&gt;
&lt;br /&gt;
=Moodle-Google Gadget=&lt;br /&gt;
If you have a Gmail account, you should see a Google gadget that contains a link back to Moodle on your Google Start Page. If you don&#039;t see a link to Moodle on your Google Start Page, follow these directions to add the Moodle Gadget.&lt;br /&gt;
&lt;br /&gt;
# Open your Start Page.&lt;br /&gt;
# Click the Add stuff link.&lt;br /&gt;
# Click the Add by URL link.&lt;br /&gt;
# Copy and paste this URL, but be sure to change &amp;quot;test.mroomsdev.com&amp;quot; to your Google Partner Page domain: http://test.mroomsdev.com/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# A warning message will pop up. Click OK.&lt;br /&gt;
# A message should appear below the URL field that says it was added.&lt;br /&gt;
# Click Back to Homepage to return to your Start Page and verify the link is there.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Once the Moodle accounts are disabled, so are the Google accounts. However one could choose to grant access via Google to continue collaboration after a course is completed.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
*Modules and Plugin page: [http://moodle.org/mod/data/view.php?d=13&amp;amp;mode=single&amp;amp;page=187 Modules and Plugin]&lt;br /&gt;
*Using Moodle Discusion: [http://moodle.org/mod/forum/view.php?id=7786 Google Apps integration forum]&lt;br /&gt;
*Download:  [http://development.moodlerooms.com/mod/resource/view.php?id=210&amp;amp;subdir=/Google_1.0_for_Moodle_1.9 Google_1.0]_for_Moodle_1.9 on Moodlerooms.com no login required&lt;br /&gt;
*[[Google gadgets]]- code to put into a Moodle HTML block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71529</id>
		<title>Google Apps Integration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71529"/>
		<updated>2010-04-26T20:03:26Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Moodlerooms and Google have worked together to build a state of the art integration. The 1.0 version of the integration provides:&lt;br /&gt;
* Automatic creation of users in Google Apps (Google Docs™, Google Calendar™, and Gmail™) when they are created in Moodle&lt;br /&gt;
* Automatic log in to Google Apps when a user logs in to Moodle&lt;br /&gt;
* A Gmail block in Moodle that displays latest Gmail messages on the Moodle Front Page&lt;br /&gt;
* A Google Apps block on the Moodle Front Page displays links to Google Start Page, Google Docs, Google Calendar and Gmail&lt;br /&gt;
* A Moodle app on the Google Apps Start PageGoogle Apps can integrates with Moodle v1.9 and above.  There is a contributed code block that can be added to Moodle and a widget which can be added to Google. It will allow for a single sign-on for users from Moodle to Google.  &lt;br /&gt;
&lt;br /&gt;
=Integration Setup=&lt;br /&gt;
&lt;br /&gt;
There are a few steps involved with setting up the Google Apps Education Edition Integration. This setup should be configured by a technically knowledgeable Moodle administrator.&lt;br /&gt;
&lt;br /&gt;
# Set up Moodle&#039;s Authentication&lt;br /&gt;
# Set up Google&#039;s Authentication&lt;br /&gt;
# Add and configure the Gmail and Google Apps blocks&lt;br /&gt;
# Add and setup the User Sync block (optional; for those who do not have a Google account creation/management process)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
The following must be installed:&lt;br /&gt;
# auth/gsaml&lt;br /&gt;
# blocks/gmail&lt;br /&gt;
# blocks/gdata&lt;br /&gt;
# blocks/gaccess&lt;br /&gt;
# lib/zend&lt;br /&gt;
&lt;br /&gt;
==Generating Private Key and SSL signed Certificate==&lt;br /&gt;
Generate the private key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl genrsa -des3 -out googleappsidp.key 1024&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RSA encrypt the key for use with Google Apps:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl rsa -in googleappsidp.key -out googleappsidp.pem&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the .csr fill to generate the certificate from:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl req -new -key googleappsidp.key -out googleappsidp.csr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Encrypt the key in x509 format using the key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl x509 -req -days 9999 -in googleappsidp.csr -signkey googleappsidp.key -out googleappsidp.crt&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Set Up Moodle&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# Log in to Moodle as an Administrator&lt;br /&gt;
# Click Notifications to update block tables&lt;br /&gt;
# Enable the Google Authentication plug-in from the Manage Plug-ins admin page&lt;br /&gt;
# In the Site Admin menu, select &amp;quot;Users.&amp;quot; Next, select &amp;quot;Authentication&amp;quot; and click &amp;quot;Google Authentication.&amp;quot;&lt;br /&gt;
# Enter your Google partner page domain name.&lt;br /&gt;
# Upload private key (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Upload the SSL signing certificate (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
&lt;br /&gt;
==Set Up Google&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# In a new browser window, log in to the Google Apps Control Panel page as an admin. To access this page, you can use this URL -- just change the end to have your partner page domain information: https://www.google.com/a/yourpartnerpagedomainname.com.&lt;br /&gt;
# Click the Advanced tools tab&lt;br /&gt;
# Click the Set up single sign-on (SSO) link next to Authentication&lt;br /&gt;
# Select the checkbox to &amp;quot;Enable Single Sign-on&amp;quot;&lt;br /&gt;
# Enter this URL into the Sign-in page URL text field:&lt;br /&gt;
##  http://&amp;lt;moodle site url&amp;gt;/login/index.php&lt;br /&gt;
# Enter this URL into the Sign-out page URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/logout.php&lt;br /&gt;
# Enter this URL into the Change password URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/change_password.php&lt;br /&gt;
# Generate and upload a verification certificate to Google (X.509 certificate containing the public key)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Click the User Accounts tab&lt;br /&gt;
#This displays existing users as well as a message that says &amp;quot;You can create up to ### user accounts for this domain.&amp;quot; If you are using the Google User Sync block for account management, this number must match or be larger than the number of accounts you plan on creating. Request more accounts if you need them by clicking the request more link on this page.&lt;br /&gt;
# Click the Settings link. Check the box to &amp;quot;Enable provisioning API&amp;quot; (otherwise users will NOT be updated) (Users and Groups &amp;gt; Settings &amp;gt; Enable provisioning API must be checked.)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Next you will add and configure the blocks as well as the Moodle-Google Gadget. See the &amp;quot;Google Blocks Configuration&amp;quot; and &amp;quot;Moodle-Google Gadget Setup&amp;quot; tutorials for more information.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider:==&lt;br /&gt;
* The Gmail feed might not be found and display an error. Troubleshooting tips include:&lt;br /&gt;
** Turn on debugging and the diagnostics page will perform a basic check on the Gmail feed.&lt;br /&gt;
** If you are using the Google User Sync block, check to see if an admin or guest user has been added to the sync. If so, remove them.&lt;br /&gt;
** If you are using the Google User Sync block, be sure your Google user settings are set to allow the number users you are adding to the sync in Moodle. If the number of Moodle users is larger than the number set in Google, then those accounts will not be created or synced (ie, if Google is set to 1000 users and Moodle has 1500, 500 accounts will fail to be created or synced).&lt;br /&gt;
* The location of the Google Authentication Plug-in in the Authentication order is important. Currently, it needs to override a user&#039;s auth type when a Moodle user changes passwords. This behavior may affect M-Net users. A solution for this problem has not yet been found.&lt;br /&gt;
* Do not add a user to the sync if their user name has been deleted from Google. You need to wait five days before adding them to the User Sync.&lt;br /&gt;
* See the Diagnostics Page in the gsaml settings for more information about your setup.&lt;br /&gt;
&lt;br /&gt;
==Gmail Block Settings==&lt;br /&gt;
; OAuth Consumer Secret : This is a string that Google apps generates and is used as a shared secret.&lt;br /&gt;
; Google Apps Domain : your google apps partner domain.&lt;br /&gt;
; Unread Message Count : Here, you can specify the number of unread messages to display in the Gmail block. Leave as zero for no limit.&lt;br /&gt;
; New Window Links : By default, the Gmail links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
; Show first name and Show last name : By default, the author&#039;s first and last name is displayed next to the e-mail title -- uncheck these settings to hide.&lt;br /&gt;
&lt;br /&gt;
To configure the Gmail block:&lt;br /&gt;
# In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
# Define the OAuth consumer secret. To find your consumer secret:&lt;br /&gt;
## Log in to http://www.google.com/a/YOURDOMAIN with your Google Admin account&lt;br /&gt;
## Click Advanced Tools&lt;br /&gt;
## Click Manage OAuth Access&lt;br /&gt;
## Copy the OAuth consumer secret from this screen and paste it into the Moodle text box&lt;br /&gt;
# Enter your Google apps domain&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
==Google Apps Block Settings==&lt;br /&gt;
; New Window Links : By default, the Google Apps links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
&lt;br /&gt;
==User Sync Block Settings==&lt;br /&gt;
; Google Apps username :  This is a username in Google apps that has administrative permissions.  This user should not be in Moodle and not part of the user sync.  This user is used to create, delete and update Google accounts.&lt;br /&gt;
; Google Apps password :  password for the google user to sync with.&lt;br /&gt;
; Google Apps domain : Your partner domain.&lt;br /&gt;
; Use Google Apps e-mail : This is unchecked by default. Checking this box will cause the e-mail address in the Moodle profile to be changed to the Gmail address.&lt;br /&gt;
; Enable events : This is turned on by default, as this causes any change of Moodle profile information to be instantly updated in Google. Unchecking this setting will cause Moodle profile updates to only be changed in Google when the cron runs. This is preferable if you do not want the deletion of Moodle accounts to immediately delete Google accounts.&lt;br /&gt;
; Cron interval : Enter how regularly (in minutes) you want the cron to run and sync Google and Moodle accounts. This is set to every 30 minutes by default.&lt;br /&gt;
; Cron expire : When the synchronization runs, it locks the cron from being executed again until it has finished. This setting is used to determine when that lock has expired. Consider setting this to a high value, especially on first runs with a lot of users. By default, it is set to 24 hours.&lt;br /&gt;
&lt;br /&gt;
Configuring the Google User Sync Block:&lt;br /&gt;
# Log in to Moodle as an administrator. You must also be an administrator in Google.&lt;br /&gt;
# Click the Add Blocks drop down and choose &amp;quot;Google User Sync.&amp;quot;&lt;br /&gt;
# Click the Settings link in the Google User Sync block.&lt;br /&gt;
# Configure the settings according to your Google Partner page information. You will need to enter the Google administrator user name and password in addition to your Google Partner domain.&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
Confirming the configuration is working:&lt;br /&gt;
# Click the Status link in the Google User Sync block to confirm that the integration was successful.&lt;br /&gt;
# Go to Site Administration &amp;gt; Security &amp;gt; Site policies&lt;br /&gt;
# Check Password Policy and make sure the Set Password Length is set to &amp;quot;6 or greater&amp;quot; (Required for Google&#039;s password policy)&lt;br /&gt;
&lt;br /&gt;
===User Sync Status===&lt;br /&gt;
&lt;br /&gt;
The user sync status will tell you if the integration was successful or not. If there is an error here, it means one of your settings is wrong. Check to make sure the user name and password is correct, &lt;br /&gt;
&lt;br /&gt;
==Moodle-Google Gadget Setup==&lt;br /&gt;
To set up the Moodle-Google gadget, you need to first set up and configure the Google Apps Education Edition Integration. To complete this process, you must be an admin for both the Moodle installation and the Google installation.&lt;br /&gt;
&lt;br /&gt;
# Log in to the Google Control Panel as an admin. Use the link below, substituting your Google domain name for &amp;quot;mroomsdev.com&amp;quot;&lt;br /&gt;
## https://www.google.com/a/mroomsdev.com&lt;br /&gt;
# Click the Service Settings tab, then the Start Page link.&lt;br /&gt;
# Click Customize and Publish&lt;br /&gt;
# Click Select default content&lt;br /&gt;
# Click Refresh default content below to make the Add stuff link appear&lt;br /&gt;
# Click Add stuff&lt;br /&gt;
# Click Add by URL&lt;br /&gt;
# Paste the following URL, substituting your Moodle domain name for &amp;quot;test.mroomsdev.com&amp;quot;&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# Click close&lt;br /&gt;
# Click Back to Homepage&lt;br /&gt;
# You should see the Moodle Gadget appear&lt;br /&gt;
# Lastly, be sure to click the Publish link in the furthest upper right-hand corner.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider==&lt;br /&gt;
&lt;br /&gt;
The Moodle-Google Gadget is a beta prototype. In the future, it may be much more useful. Currently, there is a known bug regarding the Gadget not updating immediately upon install. Developers are looking into it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Gmail Block=&lt;br /&gt;
==Descrption==&lt;br /&gt;
The Gmail block displays an inbox link, along with a list of a customizable number of unread e-mails. This list contains the subject of the e-mail as well as the name of the sender. Each subject is a link, which you can hover over with your mouse to see a summary of the e-mail.&lt;br /&gt;
&lt;br /&gt;
==Granting Access==&lt;br /&gt;
The first time a user uses the Gmail block they will be required to grant the block access to view their Gmail account.  This is required for the 3 legged OAuth connection.  &lt;br /&gt;
&lt;br /&gt;
To grant access perform the following steps:&lt;br /&gt;
# Click the Grant access link in the Gmail Block&lt;br /&gt;
[[Image:tut_img_60.png]]&lt;br /&gt;
## If Google authentication plugin is not configured then you will be asked to login to your site.&lt;br /&gt;
# Click the grant access button. (all of the black lines will be filled in with data about your email or site.&lt;br /&gt;
[[Image:tut_img_61.png]]&lt;br /&gt;
# Once you have granted access you will be shown a success screen an then returned to your Moodle site.  You will not see a list of unread emails in your Gmail block.&lt;br /&gt;
&lt;br /&gt;
=== Using Gmail block ===&lt;br /&gt;
To use the Gmail block&lt;br /&gt;
# Click the subject link of the e-mail you want to open. Click the Inbox link to go directly to your Gmail inbox.&lt;br /&gt;
[[Image:tut_img_gmail_block.png]]&lt;br /&gt;
# This opens the e-mail (or inbox) in a new browser window or tab.&lt;br /&gt;
# When you&#039;re done using Gmail, navigate back to your Moodle window. Unread messages will not update in your Moodle Gmail block until you log out and log back in.&lt;br /&gt;
&lt;br /&gt;
==Refresh Access==&lt;br /&gt;
The Refresh Access Token Link can be used to renew a users access token when it expires or allows a user to deny access to an previously granted token.  User&#039;s should seldom have to click this link to obtain a new access token from Google.&lt;br /&gt;
&lt;br /&gt;
===Technical Notes on the Gmail Block===&lt;br /&gt;
&lt;br /&gt;
* The Gmail block requires the rest of the Google-Moodle SSO system to be functional in order to operate properly. &lt;br /&gt;
* The system does not support Google&#039;s optional custom certificate authentication.&lt;br /&gt;
* If you are experiences SSO errors double check that your server time is in agreement with one of the internets many NTP servers. Your server and Google&#039;s systems must have proper time in order to process SSO requests properly.&lt;br /&gt;
* 2 legged OAuth is no longer supported by Google&#039;s Gmail atom feed and thus has been removed from the system.&lt;br /&gt;
&lt;br /&gt;
=== Regarding General Maintenance ===&lt;br /&gt;
The Gmail block contains a local copy of Mozilla&#039;s Certification Authorities list. Overtime the Authority certificates bundle may need to be updated.  If the Gmail block returns an error regarding SSL you may need to look into this issue.&lt;br /&gt;
&lt;br /&gt;
=Google Apps Block=&lt;br /&gt;
To use the Google Apps block:&lt;br /&gt;
# Click the link of the application you want to use. This will take you directly to it in a new browser window or tab. You can choose from:&lt;br /&gt;
## Gmail&lt;br /&gt;
## Calendar&lt;br /&gt;
## Docs&lt;br /&gt;
# When you&#039;re done using the Google App, navigate back to your Moodle window.&lt;br /&gt;
&lt;br /&gt;
=Logging Out of Google Apps=&lt;br /&gt;
If you click the Sign out link from a Google App, you will be taken to a page confirming that you want to log out.&lt;br /&gt;
&lt;br /&gt;
If you click Yes, it also logs out of Moodle as well and takes you back to the Moodle Front Page. Likewise, if you log out of Moodle, it will also log out of Google. This prevents you from logging out of one system and forgetting to log out of the other. This is especially useful when using a public or shared computer.&lt;br /&gt;
&lt;br /&gt;
If you click No, you will be taken back to the Moodle Front Page.&lt;br /&gt;
&lt;br /&gt;
=Google User Sync=&lt;br /&gt;
&lt;br /&gt;
This block allows you to create and manage Google accounts from Moodle. When a Moodle user is added to the User Sync, their account is automatically created in Google. If their account is deleted in Moodle, it will also be deleted in Google.&lt;br /&gt;
&lt;br /&gt;
Once the block has been configured by a technically knowledgeable Moodle administrator (see &amp;quot;Google User Sync Settings&amp;quot; tutorial), the actual management of users can be performed by anyone with Moodle administrator permissions.&lt;br /&gt;
&lt;br /&gt;
==Adding to the User Sync&lt;br /&gt;
&lt;br /&gt;
# Click the Add users to sync link&lt;br /&gt;
# Use the Moodle filter to locate the users you wish to add. Note: never add a guest user or the main administrator. This will break the syncing process.&lt;br /&gt;
# Select the boxes next to the user names you wish to add. Alternatively, you can click the Add all users button.&lt;br /&gt;
# Click Add users to sync&lt;br /&gt;
# The page will refresh and the users you just added will no longer appear.&lt;br /&gt;
&lt;br /&gt;
==Managing the User Sync==&lt;br /&gt;
&lt;br /&gt;
To view the users currently being synced and remove them, you can use the feature Users being synced.&lt;br /&gt;
&lt;br /&gt;
# Click the Users being synced link.&lt;br /&gt;
# This displays a list of all the users being synced. You can manage which users are displayed by searching with the Moodle filter. You can also display more users per page by using the Page size drop down menu.&lt;br /&gt;
# There are two ways to remove users. You can use the Remove all users button, or you can select specific users and click Remove users from sync.&lt;br /&gt;
# The page will refresh, and the users will no longer appear in the Users being synced tab.&lt;br /&gt;
&lt;br /&gt;
=Moodle-Google Gadget=&lt;br /&gt;
If you have a Gmail account, you should see a Google gadget that contains a link back to Moodle on your Google Start Page. If you don&#039;t see a link to Moodle on your Google Start Page, follow these directions to add the Moodle Gadget.&lt;br /&gt;
&lt;br /&gt;
# Open your Start Page.&lt;br /&gt;
# Click the Add stuff link.&lt;br /&gt;
# Click the Add by URL link.&lt;br /&gt;
# Copy and paste this URL, but be sure to change &amp;quot;test.mroomsdev.com&amp;quot; to your Google Partner Page domain: http://test.mroomsdev.com/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# A warning message will pop up. Click OK.&lt;br /&gt;
# A message should appear below the URL field that says it was added.&lt;br /&gt;
# Click Back to Homepage to return to your Start Page and verify the link is there.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Once the Moodle accounts are disabled, so are the Google accounts. However one could choose to grant access via Google to continue collaboration after a course is completed.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
*Modules and Plugin page: [http://moodle.org/mod/data/view.php?d=13&amp;amp;mode=single&amp;amp;page=187 Modules and Plugin]&lt;br /&gt;
*Using Moodle Discusion: [http://moodle.org/mod/forum/view.php?id=7786 Google Apps integration forum]&lt;br /&gt;
*Download:  [http://development.moodlerooms.com/mod/resource/view.php?id=210&amp;amp;subdir=/Google_1.0_for_Moodle_1.9 Google_1.0]_for_Moodle_1.9 on Moodlerooms.com no login required&lt;br /&gt;
*[[Google gadgets]]- code to put into a Moodle HTML block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:tut_img_gmail_block.png&amp;diff=71528</id>
		<title>Fitxer:tut img gmail block.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:tut_img_gmail_block.png&amp;diff=71528"/>
		<updated>2010-04-26T19:36:17Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:tut_img_61.png&amp;diff=71527</id>
		<title>Fitxer:tut img 61.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:tut_img_61.png&amp;diff=71527"/>
		<updated>2010-04-26T19:36:08Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:tut_img_60.png&amp;diff=71526</id>
		<title>Fitxer:tut img 60.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:tut_img_60.png&amp;diff=71526"/>
		<updated>2010-04-26T19:36:01Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71525</id>
		<title>Google Apps Integration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71525"/>
		<updated>2010-04-26T19:35:13Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Moodlerooms and Google have worked together to build a state of the art integration. The 1.0 version of the integration provides:&lt;br /&gt;
* Automatic creation of users in Google Apps (Google Docs™, Google Calendar™, and Gmail™) when they are created in Moodle&lt;br /&gt;
* Automatic log in to Google Apps when a user logs in to Moodle&lt;br /&gt;
* A Gmail block in Moodle that displays latest Gmail messages on the Moodle Front Page&lt;br /&gt;
* A Google Apps block on the Moodle Front Page displays links to Google Start Page, Google Docs, Google Calendar and Gmail&lt;br /&gt;
* A Moodle app on the Google Apps Start PageGoogle Apps can integrates with Moodle v1.9 and above.  There is a contributed code block that can be added to Moodle and a widget which can be added to Google. It will allow for a single sign-on for users from Moodle to Google.  &lt;br /&gt;
&lt;br /&gt;
=Integration Setup=&lt;br /&gt;
&lt;br /&gt;
There are a few steps involved with setting up the Google Apps Education Edition Integration. This setup should be configured by a technically knowledgeable Moodle administrator.&lt;br /&gt;
&lt;br /&gt;
# Set up Moodle&#039;s Authentication&lt;br /&gt;
# Set up Google&#039;s Authentication&lt;br /&gt;
# Add and configure the Gmail and Google Apps blocks&lt;br /&gt;
# Add and setup the User Sync block (optional; for those who do not have a Google account creation/management process)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
The following must be installed:&lt;br /&gt;
# auth/gsaml&lt;br /&gt;
# blocks/gmail&lt;br /&gt;
# blocks/gdata&lt;br /&gt;
# blocks/gaccess&lt;br /&gt;
# lib/zend&lt;br /&gt;
&lt;br /&gt;
==Generating Private Key and SSL signed Certificate==&lt;br /&gt;
Generate the private key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl genrsa -des3 -out googleappsidp.key 1024&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RSA encrypt the key for use with Google Apps:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl rsa -in googleappsidp.key -out googleappsidp.pem&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the .csr fill to generate the certificate from:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl req -new -key googleappsidp.key -out googleappsidp.csr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Encrypt the key in x509 format using the key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl x509 -req -days 9999 -in googleappsidp.csr -signkey googleappsidp.key -out googleappsidp.crt&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Set Up Moodle&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# Log in to Moodle as an Administrator&lt;br /&gt;
# Click Notifications to update block tables&lt;br /&gt;
# Enable the Google Authentication plug-in from the Manage Plug-ins admin page&lt;br /&gt;
# In the Site Admin menu, select &amp;quot;Users.&amp;quot; Next, select &amp;quot;Authentication&amp;quot; and click &amp;quot;Google Authentication.&amp;quot;&lt;br /&gt;
# Enter your Google partner page domain name.&lt;br /&gt;
# Upload private key (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Upload the SSL signing certificate (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
&lt;br /&gt;
==Set Up Google&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# In a new browser window, log in to the Google Apps Control Panel page as an admin. To access this page, you can use this URL -- just change the end to have your partner page domain information: https://www.google.com/a/yourpartnerpagedomainname.com.&lt;br /&gt;
# Click the Advanced tools tab&lt;br /&gt;
# Click the Set up single sign-on (SSO) link next to Authentication&lt;br /&gt;
# Select the checkbox to &amp;quot;Enable Single Sign-on&amp;quot;&lt;br /&gt;
# Enter this URL into the Sign-in page URL text field:&lt;br /&gt;
##  http://&amp;lt;moodle site url&amp;gt;/login/index.php&lt;br /&gt;
# Enter this URL into the Sign-out page URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/logout.php&lt;br /&gt;
# Enter this URL into the Change password URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/change_password.php&lt;br /&gt;
# Generate and upload a verification certificate to Google (X.509 certificate containing the public key)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Click the User Accounts tab&lt;br /&gt;
#This displays existing users as well as a message that says &amp;quot;You can create up to ### user accounts for this domain.&amp;quot; If you are using the Google User Sync block for account management, this number must match or be larger than the number of accounts you plan on creating. Request more accounts if you need them by clicking the request more link on this page.&lt;br /&gt;
# Click the Settings link. Check the box to &amp;quot;Enable provisioning API&amp;quot; (otherwise users will NOT be updated) (Users and Groups &amp;gt; Settings &amp;gt; Enable provisioning API must be checked.)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Next you will add and configure the blocks as well as the Moodle-Google Gadget. See the &amp;quot;Google Blocks Configuration&amp;quot; and &amp;quot;Moodle-Google Gadget Setup&amp;quot; tutorials for more information.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider:==&lt;br /&gt;
* The Gmail feed might not be found and display an error. Troubleshooting tips include:&lt;br /&gt;
** Turn on debugging and the diagnostics page will perform a basic check on the Gmail feed.&lt;br /&gt;
** If you are using the Google User Sync block, check to see if an admin or guest user has been added to the sync. If so, remove them.&lt;br /&gt;
** If you are using the Google User Sync block, be sure your Google user settings are set to allow the number users you are adding to the sync in Moodle. If the number of Moodle users is larger than the number set in Google, then those accounts will not be created or synced (ie, if Google is set to 1000 users and Moodle has 1500, 500 accounts will fail to be created or synced).&lt;br /&gt;
* The location of the Google Authentication Plug-in in the Authentication order is important. Currently, it needs to override a user&#039;s auth type when a Moodle user changes passwords. This behavior may affect M-Net users. A solution for this problem has not yet been found.&lt;br /&gt;
* Do not add a user to the sync if their user name has been deleted from Google. You need to wait five days before adding them to the User Sync.&lt;br /&gt;
* See the Diagnostics Page in the gsaml settings for more information about your setup.&lt;br /&gt;
&lt;br /&gt;
==Gmail Block Settings==&lt;br /&gt;
; OAuth Consumer Secret : This is a string that Google apps generates and is used as a shared secret.&lt;br /&gt;
; Google Apps Domain : your google apps partner domain.&lt;br /&gt;
; Unread Message Count : Here, you can specify the number of unread messages to display in the Gmail block. Leave as zero for no limit.&lt;br /&gt;
; New Window Links : By default, the Gmail links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
; Show first name and Show last name : By default, the author&#039;s first and last name is displayed next to the e-mail title -- uncheck these settings to hide.&lt;br /&gt;
&lt;br /&gt;
To configure the Gmail block:&lt;br /&gt;
# In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
# Define the OAuth consumer secret. To find your consumer secret:&lt;br /&gt;
## Log in to http://www.google.com/a/YOURDOMAIN with your Google Admin account&lt;br /&gt;
## Click Advanced Tools&lt;br /&gt;
## Click Manage OAuth Access&lt;br /&gt;
## Copy the OAuth consumer secret from this screen and paste it into the Moodle text box&lt;br /&gt;
# Enter your Google apps domain&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
==Google Apps Block Settings==&lt;br /&gt;
; New Window Links : By default, the Google Apps links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
&lt;br /&gt;
==User Sync Block Settings==&lt;br /&gt;
; Google Apps username :  This is a username in Google apps that has administrative permissions.  This user should not be in Moodle and not part of the user sync.  This user is used to create, delete and update Google accounts.&lt;br /&gt;
; Google Apps password :  password for the google user to sync with.&lt;br /&gt;
; Google Apps domain : Your partner domain.&lt;br /&gt;
; Use Google Apps e-mail : This is unchecked by default. Checking this box will cause the e-mail address in the Moodle profile to be changed to the Gmail address.&lt;br /&gt;
; Enable events : This is turned on by default, as this causes any change of Moodle profile information to be instantly updated in Google. Unchecking this setting will cause Moodle profile updates to only be changed in Google when the cron runs. This is preferable if you do not want the deletion of Moodle accounts to immediately delete Google accounts.&lt;br /&gt;
; Cron interval : Enter how regularly (in minutes) you want the cron to run and sync Google and Moodle accounts. This is set to every 30 minutes by default.&lt;br /&gt;
; Cron expire : When the synchronization runs, it locks the cron from being executed again until it has finished. This setting is used to determine when that lock has expired. Consider setting this to a high value, especially on first runs with a lot of users. By default, it is set to 24 hours.&lt;br /&gt;
&lt;br /&gt;
Configuring the Google User Sync Block:&lt;br /&gt;
# Log in to Moodle as an administrator. You must also be an administrator in Google.&lt;br /&gt;
# Click the Add Blocks drop down and choose &amp;quot;Google User Sync.&amp;quot;&lt;br /&gt;
# Click the Settings link in the Google User Sync block.&lt;br /&gt;
# Configure the settings according to your Google Partner page information. You will need to enter the Google administrator user name and password in addition to your Google Partner domain.&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
Confirming the configuration is working:&lt;br /&gt;
# Click the Status link in the Google User Sync block to confirm that the integration was successful.&lt;br /&gt;
# Go to Site Administration &amp;gt; Security &amp;gt; Site policies&lt;br /&gt;
# Check Password Policy and make sure the Set Password Length is set to &amp;quot;6 or greater&amp;quot; (Required for Google&#039;s password policy)&lt;br /&gt;
&lt;br /&gt;
===User Sync Status===&lt;br /&gt;
&lt;br /&gt;
The user sync status will tell you if the integration was successful or not. If there is an error here, it means one of your settings is wrong. Check to make sure the user name and password is correct, &lt;br /&gt;
&lt;br /&gt;
==Moodle-Google Gadget Setup==&lt;br /&gt;
To set up the Moodle-Google gadget, you need to first set up and configure the Google Apps Education Edition Integration. To complete this process, you must be an admin for both the Moodle installation and the Google installation.&lt;br /&gt;
&lt;br /&gt;
# Log in to the Google Control Panel as an admin. Use the link below, substituting your Google domain name for &amp;quot;mroomsdev.com&amp;quot;&lt;br /&gt;
## https://www.google.com/a/mroomsdev.com&lt;br /&gt;
# Click the Service Settings tab, then the Start Page link.&lt;br /&gt;
# Click Customize and Publish&lt;br /&gt;
# Click Select default content&lt;br /&gt;
# Click Refresh default content below to make the Add stuff link appear&lt;br /&gt;
# Click Add stuff&lt;br /&gt;
# Click Add by URL&lt;br /&gt;
# Paste the following URL, substituting your Moodle domain name for &amp;quot;test.mroomsdev.com&amp;quot;&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# Click close&lt;br /&gt;
# Click Back to Homepage&lt;br /&gt;
# You should see the Moodle Gadget appear&lt;br /&gt;
# Lastly, be sure to click the Publish link in the furthest upper right-hand corner.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider==&lt;br /&gt;
&lt;br /&gt;
The Moodle-Google Gadget is a beta prototype. In the future, it may be much more useful. Currently, there is a known bug regarding the Gadget not updating immediately upon install. Developers are looking into it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Gmail Block=&lt;br /&gt;
==Descrption==&lt;br /&gt;
The Gmail block displays an inbox link, along with a list of a customizable number of unread e-mails. This list contains the subject of the e-mail as well as the name of the sender. Each subject is a link, which you can hover over with your mouse to see a summary of the e-mail.&lt;br /&gt;
&lt;br /&gt;
==Granting Access==&lt;br /&gt;
The first time a user uses the Gmail block they will be required to grant the block access to view their Gmail account.  This is required for the 3 legged OAuth connection.  &lt;br /&gt;
&lt;br /&gt;
To grant access perform the following steps:&lt;br /&gt;
# Click the Grant access link in the Gmail Block&lt;br /&gt;
[[Image:tut_img_60.png]]&lt;br /&gt;
## If Google authentication plugin is not configured then you will be asked to login to your site.&lt;br /&gt;
# Click the grant access button. (all of the black lines will be filled in with data about your email or site.&lt;br /&gt;
[[Image:tut_img_61.png]]&lt;br /&gt;
# Once you have granted access you will be shown a success screen an then returned to your Moodle site.  You will not see a list of unread emails in your Gmail block.&lt;br /&gt;
&lt;br /&gt;
=== Using Gmail block ===&lt;br /&gt;
To use the Gmail block&lt;br /&gt;
# Click the subject link of the e-mail you want to open. Click the Inbox link to go directly to your Gmail inbox.&lt;br /&gt;
[[Image:tut_img_gmail_block.png]]&lt;br /&gt;
# This opens the e-mail (or inbox) in a new browser window or tab.&lt;br /&gt;
# When you&#039;re done using Gmail, navigate back to your Moodle window. Unread messages will not update in your Moodle Gmail block until you log out and log back in.&lt;br /&gt;
&lt;br /&gt;
==Refresh Access==&lt;br /&gt;
The Refresh Access Token Link can be used to renew a users access token when it expires or allows a user to deny access to an previously granted token.  User&#039;s should seldom have to click this link to obtain a new access token from Google.&lt;br /&gt;
&lt;br /&gt;
===Technical Notes on the Gmail Block===&lt;br /&gt;
&lt;br /&gt;
* The Gmail block requires the rest of the Google-Moodle SSO system to be functional in order to operate properly. &lt;br /&gt;
* The system does not support Google&#039;s optional custom certificate authentication.&lt;br /&gt;
* If you are experiences SSO errors double check that your server time is in agreement with one of the internets many NTP servers. Your server and Google&#039;s systems must have proper time in order to process SSO requests properly.&lt;br /&gt;
* 2 legged OAuth is no longer supported by Google&#039;s Gmail atom feed and thus has been removed from the system.&lt;br /&gt;
&lt;br /&gt;
=== Regarding General Maintenance ===&lt;br /&gt;
The Gmail block contains a local copy of Mozilla&#039;s Certification Authorities list. Overtime the Authority certificates bundle may need to be updated.  If the Gmail block returns an error regarding SSL you may need to look into this issue.&lt;br /&gt;
&lt;br /&gt;
=Google Apps Block=&lt;br /&gt;
To use the Google Apps block:&lt;br /&gt;
# Click the link of the application you want to use. This will take you directly to it in a new browser window or tab. You can choose from:&lt;br /&gt;
## Gmail&lt;br /&gt;
## Calendar&lt;br /&gt;
## Docs&lt;br /&gt;
# When you&#039;re done using the Google App, navigate back to your Moodle window.&lt;br /&gt;
&lt;br /&gt;
=Logging Out of Google Apps=&lt;br /&gt;
If you click the Sign out link from a Google App, you will be taken to a page confirming that you want to log out.&lt;br /&gt;
&lt;br /&gt;
If you click Yes, it also logs out of Moodle as well and takes you back to the Moodle Front Page. Likewise, if you log out of Moodle, it will also log out of Google. This prevents you from logging out of one system and forgetting to log out of the other. This is especially useful when using a public or shared computer.&lt;br /&gt;
&lt;br /&gt;
If you click No, you will be taken back to the Moodle Front Page.&lt;br /&gt;
&lt;br /&gt;
=Google User Sync=&lt;br /&gt;
&lt;br /&gt;
This block allows you to create and manage Google accounts from Moodle. When a Moodle user is added to the User Sync, their account is automatically created in Google. If their account is deleted in Moodle, it will also be deleted in Google.&lt;br /&gt;
&lt;br /&gt;
Once the block has been configured by a technically knowledgeable Moodle administrator (see &amp;quot;Google User Sync Settings&amp;quot; tutorial), the actual management of users can be performed by anyone with Moodle administrator permissions.&lt;br /&gt;
&lt;br /&gt;
==Adding to the User Sync&lt;br /&gt;
&lt;br /&gt;
# Click the Add users to sync link&lt;br /&gt;
# Use the Moodle filter to locate the users you wish to add. Note: never add a guest user or the main administrator. This will break the syncing process.&lt;br /&gt;
# Select the boxes next to the user names you wish to add. Alternatively, you can click the Add all users button.&lt;br /&gt;
# Click Add users to sync&lt;br /&gt;
# The page will refresh and the users you just added will no longer appear.&lt;br /&gt;
&lt;br /&gt;
==Managing the User Sync==&lt;br /&gt;
&lt;br /&gt;
To view the users currently being synced and remove them, you can use the feature Users being synced.&lt;br /&gt;
&lt;br /&gt;
# Click the Users being synced link.&lt;br /&gt;
# This displays a list of all the users being synced. You can manage which users are displayed by searching with the Moodle filter. You can also display more users per page by using the Page size drop down menu.&lt;br /&gt;
# There are two ways to remove users. You can use the Remove all users button, or you can select specific users and click Remove users from sync.&lt;br /&gt;
# The page will refresh, and the users will no longer appear in the Users being synced tab.&lt;br /&gt;
&lt;br /&gt;
=Moodle-Google Gadget=&lt;br /&gt;
If you have a Gmail account, you should see a Google gadget that contains a link back to Moodle on your Google Start Page. If you don&#039;t see a link to Moodle on your Google Start Page, follow these directions to add the Moodle Gadget.&lt;br /&gt;
&lt;br /&gt;
# Open your Start Page.&lt;br /&gt;
# Click the Add stuff link.&lt;br /&gt;
# Click the Add by URL link.&lt;br /&gt;
# Copy and paste this URL, but be sure to change &amp;quot;test.mroomsdev.com&amp;quot; to your Google Partner Page domain: http://test.mroomsdev.com/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# A warning message will pop up. Click OK.&lt;br /&gt;
# A message should appear below the URL field that says it was added.&lt;br /&gt;
# Click Back to Homepage to return to your Start Page and verify the link is there.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Once the Moodle accounts are disabled, so are the Google accounts. However one could choose to grant access via Google to continue collaboration after a course is completed.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
*Modules and Plugin page : [http://moodle.org/mod/data/view.php?d=13&amp;amp;mode=single&amp;amp;page=187 Modules and Plugin]&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=7786 Google Apps integration forum]&lt;br /&gt;
*Download:  [http://development.moodlerooms.com/mod/resource/view.php?id=210&amp;amp;subdir=/Google_1.0_for_Moodle_1.9 Google_1.0]_for_Moodle_1.9 on Moodlerooms.com no login required&lt;br /&gt;
*Discussion: [http://development.moodlerooms.com/course/view.php?id=30 Moodlerooms Moodle-Google course] - requires login to Moodlerooms&lt;br /&gt;
*[[Google gadgets]]- code to put into a Moodle HTML block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71523</id>
		<title>Google Apps Integration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71523"/>
		<updated>2010-04-26T18:18:21Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Moodlerooms and Google have worked together to build a state of the art integration. The 1.0 version of the integration provides:&lt;br /&gt;
* Automatic creation of users in Google Apps (Google Docs™, Google Calendar™, and Gmail™) when they are created in Moodle&lt;br /&gt;
* Automatic log in to Google Apps when a user logs in to Moodle&lt;br /&gt;
* A Gmail block in Moodle that displays latest Gmail messages on the Moodle Front Page&lt;br /&gt;
* A Google Apps block on the Moodle Front Page displays links to Google Start Page, Google Docs, Google Calendar and Gmail&lt;br /&gt;
* A Moodle app on the Google Apps Start PageGoogle Apps can integrates with Moodle v1.9 and above.  There is a contributed code block that can be added to Moodle and a widget which can be added to Google. It will allow for a single sign-on for users from Moodle to Google.  &lt;br /&gt;
&lt;br /&gt;
=Integration Setup=&lt;br /&gt;
&lt;br /&gt;
There are a few steps involved with setting up the Google Apps Education Edition Integration. This setup should be configured by a technically knowledgeable Moodle administrator.&lt;br /&gt;
&lt;br /&gt;
# Set up Moodle&#039;s Authentication&lt;br /&gt;
# Set up Google&#039;s Authentication&lt;br /&gt;
# Add and configure the Gmail and Google Apps blocks&lt;br /&gt;
# Add and setup the User Sync block (optional; for those who do not have a Google account creation/management process)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
The following must be installed:&lt;br /&gt;
# auth/gsaml&lt;br /&gt;
# blocks/gmail&lt;br /&gt;
# blocks/gdata&lt;br /&gt;
# blocks/gaccess&lt;br /&gt;
# lib/zend&lt;br /&gt;
&lt;br /&gt;
==Generating Private Key and SSL signed Certificate==&lt;br /&gt;
Generate the private key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl genrsa -des3 -out googleappsidp.key 1024&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
RSA encrypt the key for use with Google Apps:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl rsa -in googleappsidp.key -out googleappsidp.pem&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the .csr fill to generate the certificate from:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl req -new -key googleappsidp.key -out googleappsidp.csr&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Encrypt the key in x509 format using the key:&lt;br /&gt;
&amp;lt;code&amp;gt;sudo openssl x509 -req -days 9999 -in googleappsidp.csr -signkey googleappsidp.key -out googleappsidp.crt&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Set Up Moodle&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# Log in to Moodle as an Administrator&lt;br /&gt;
# Click Notifications to update block tables&lt;br /&gt;
# Enable the Google Authentication plug-in from the Manage Plug-ins admin page&lt;br /&gt;
# In the Site Admin menu, select &amp;quot;Users.&amp;quot; Next, select &amp;quot;Authentication&amp;quot; and click &amp;quot;Google Authentication.&amp;quot;&lt;br /&gt;
# Enter your Google partner page domain name.&lt;br /&gt;
# Upload private key (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Upload the SSL signing certificate (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
&lt;br /&gt;
==Set Up Google&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# In a new browser window, log in to the Google Apps Control Panel page as an admin. To access this page, you can use this URL -- just change the end to have your partner page domain information: https://www.google.com/a/yourpartnerpagedomainname.com.&lt;br /&gt;
# Click the Advanced tools tab&lt;br /&gt;
# Click the Set up single sign-on (SSO) link next to Authentication&lt;br /&gt;
# Select the checkbox to &amp;quot;Enable Single Sign-on&amp;quot;&lt;br /&gt;
# Enter this URL into the Sign-in page URL text field:&lt;br /&gt;
##  http://&amp;lt;moodle site url&amp;gt;/login/index.php&lt;br /&gt;
# Enter this URL into the Sign-out page URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/logout.php&lt;br /&gt;
# Enter this URL into the Change password URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/change_password.php&lt;br /&gt;
# Generate and upload a verification certificate to Google (X.509 certificate containing the public key)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Click the User Accounts tab&lt;br /&gt;
#This displays existing users as well as a message that says &amp;quot;You can create up to ### user accounts for this domain.&amp;quot; If you are using the Google User Sync block for account management, this number must match or be larger than the number of accounts you plan on creating. Request more accounts if you need them by clicking the request more link on this page.&lt;br /&gt;
# Click the Settings link. Check the box to &amp;quot;Enable provisioning API&amp;quot; (otherwise users will NOT be updated) (Users and Groups &amp;gt; Settings &amp;gt; Enable provisioning API must be checked.)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Next you will add and configure the blocks as well as the Moodle-Google Gadget. See the &amp;quot;Google Blocks Configuration&amp;quot; and &amp;quot;Moodle-Google Gadget Setup&amp;quot; tutorials for more information.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider:==&lt;br /&gt;
* The Gmail feed might not be found and display an error. Troubleshooting tips include:&lt;br /&gt;
** Turn on debugging and the diagnostics page will perform a basic check on the Gmail feed.&lt;br /&gt;
** If you are using the Google User Sync block, check to see if an admin or guest user has been added to the sync. If so, remove them.&lt;br /&gt;
** If you are using the Google User Sync block, be sure your Google user settings are set to allow the number users you are adding to the sync in Moodle. If the number of Moodle users is larger than the number set in Google, then those accounts will not be created or synced (ie, if Google is set to 1000 users and Moodle has 1500, 500 accounts will fail to be created or synced).&lt;br /&gt;
* The location of the Google Authentication Plug-in in the Authentication order is important. Currently, it needs to override a user&#039;s auth type when a Moodle user changes passwords. This behavior may affect M-Net users. A solution for this problem has not yet been found.&lt;br /&gt;
* Do not add a user to the sync if their user name has been deleted from Google. You need to wait five days before adding them to the User Sync.&lt;br /&gt;
* See the Diagnostics Page in the gsaml settings for more information about your setup.&lt;br /&gt;
&lt;br /&gt;
==Gmail Block Settings==&lt;br /&gt;
; OAuth Consumer Secret : This is a string that Google apps generates and is used as a shared secret.&lt;br /&gt;
; Google Apps Domain : your google apps partner domain.&lt;br /&gt;
; Unread Message Count : Here, you can specify the number of unread messages to display in the Gmail block. Leave as zero for no limit.&lt;br /&gt;
; New Window Links : By default, the Gmail links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
; Show first name and Show last name : By default, the author&#039;s first and last name is displayed next to the e-mail title -- uncheck these settings to hide.&lt;br /&gt;
&lt;br /&gt;
To configure the Gmail block:&lt;br /&gt;
# In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
# Define the OAuth consumer secret. To find your consumer secret:&lt;br /&gt;
## Log in to http://www.google.com/a/YOURDOMAIN with your Google Admin account&lt;br /&gt;
## Click Advanced Tools&lt;br /&gt;
## Click Manage OAuth Access&lt;br /&gt;
## Copy the OAuth consumer secret from this screen and paste it into the Moodle text box&lt;br /&gt;
# Enter your Google apps domain&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
==Google Apps Block Settings==&lt;br /&gt;
; New Window Links : By default, the Google Apps links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
&lt;br /&gt;
==User Sync Block Settings==&lt;br /&gt;
; Google Apps username :  This is a username in Google apps that has administrative permissions.  This user should not be in Moodle and not part of the user sync.  This user is used to create, delete and update Google accounts.&lt;br /&gt;
; Google Apps password :  password for the google user to sync with.&lt;br /&gt;
; Google Apps domain : Your partner domain.&lt;br /&gt;
; Use Google Apps e-mail : This is unchecked by default. Checking this box will cause the e-mail address in the Moodle profile to be changed to the Gmail address.&lt;br /&gt;
; Enable events : This is turned on by default, as this causes any change of Moodle profile information to be instantly updated in Google. Unchecking this setting will cause Moodle profile updates to only be changed in Google when the cron runs. This is preferable if you do not want the deletion of Moodle accounts to immediately delete Google accounts.&lt;br /&gt;
; Cron interval : Enter how regularly (in minutes) you want the cron to run and sync Google and Moodle accounts. This is set to every 30 minutes by default.&lt;br /&gt;
; Cron expire : When the synchronization runs, it locks the cron from being executed again until it has finished. This setting is used to determine when that lock has expired. Consider setting this to a high value, especially on first runs with a lot of users. By default, it is set to 24 hours.&lt;br /&gt;
&lt;br /&gt;
Configuring the Google User Sync Block:&lt;br /&gt;
# Log in to Moodle as an administrator. You must also be an administrator in Google.&lt;br /&gt;
# Click the Add Blocks drop down and choose &amp;quot;Google User Sync.&amp;quot;&lt;br /&gt;
# Click the Settings link in the Google User Sync block.&lt;br /&gt;
# Configure the settings according to your Google Partner page information. You will need to enter the Google administrator user name and password in addition to your Google Partner domain.&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
Confirming the configuration is working:&lt;br /&gt;
# Click the Status link in the Google User Sync block to confirm that the integration was successful.&lt;br /&gt;
# Go to Site Administration &amp;gt; Security &amp;gt; Site policies&lt;br /&gt;
# Check Password Policy and make sure the Set Password Length is set to &amp;quot;6 or greater&amp;quot; (Required for Google&#039;s password policy)&lt;br /&gt;
&lt;br /&gt;
===User Sync Status===&lt;br /&gt;
&lt;br /&gt;
The user sync status will tell you if the integration was successful or not. If there is an error here, it means one of your settings is wrong. Check to make sure the user name and password is correct, &lt;br /&gt;
&lt;br /&gt;
==Moodle-Google Gadget Setup==&lt;br /&gt;
To set up the Moodle-Google gadget, you need to first set up and configure the Google Apps Education Edition Integration. To complete this process, you must be an admin for both the Moodle installation and the Google installation.&lt;br /&gt;
&lt;br /&gt;
# Log in to the Google Control Panel as an admin. Use the link below, substituting your Google domain name for &amp;quot;mroomsdev.com&amp;quot;&lt;br /&gt;
## https://www.google.com/a/mroomsdev.com&lt;br /&gt;
# Click the Service Settings tab, then the Start Page link.&lt;br /&gt;
# Click Customize and Publish&lt;br /&gt;
# Click Select default content&lt;br /&gt;
# Click Refresh default content below to make the Add stuff link appear&lt;br /&gt;
# Click Add stuff&lt;br /&gt;
# Click Add by URL&lt;br /&gt;
# Paste the following URL, substituting your Moodle domain name for &amp;quot;test.mroomsdev.com&amp;quot;&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# Click close&lt;br /&gt;
# Click Back to Homepage&lt;br /&gt;
# You should see the Moodle Gadget appear&lt;br /&gt;
# Lastly, be sure to click the Publish link in the furthest upper right-hand corner.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider==&lt;br /&gt;
&lt;br /&gt;
The Moodle-Google Gadget is a beta prototype. In the future, it may be much more useful. Currently, there is a known bug regarding the Gadget not updating immediately upon install. Developers are looking into it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Gmail Block=&lt;br /&gt;
The Gmail block displays an inbox link, along with a list of a customizable number of unread e-mails. This list contains the subject of the e-mail as well as the name of the sender. Each subject is a link, which you can hover over with your mouse to see a summary of the e-mail.&lt;br /&gt;
&lt;br /&gt;
To use the Gmail block&lt;br /&gt;
# Click the subject link of the e-mail you want to open. Click the Inbox link to go directly to your Gmail inbox.&lt;br /&gt;
# This opens the e-mail (or inbox) in a new browser window or tab.&lt;br /&gt;
# When you&#039;re done using Gmail, navigate back to your Moodle window. Unread messages will not update in your Moodle Gmail block until you log out and log back in.&lt;br /&gt;
&lt;br /&gt;
==Logging Out==&lt;br /&gt;
&lt;br /&gt;
If you click the Sign out link from Gmail, you will be taken to a page confirming that you want to log out.&lt;br /&gt;
&lt;br /&gt;
If you click Yes, it also logs out of Moodle and takes you back to the Moodle Front Page. Likewise, if you log out of Moodle, it will also log out of Google. This prevents you from logging out of one system and forgetting to log out of the other. This is especially useful when using a public or shared computer.&lt;br /&gt;
&lt;br /&gt;
If you click No, you will be taken back to the Moodle Front Page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Granting Access==&lt;br /&gt;
Upon first usage of the Gmail block you may see a &amp;quot;Grant Access to your Inbox&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the link.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should only have to sign in this time to grant&lt;br /&gt;
Moodle permission to retrieve your mail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Grant access.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Moodle will process the request.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The gmail block should now show your inbox messages.  If you are having trouble check that your access token field (Gmail Settings) does not have an extra blank space.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE&lt;br /&gt;
&lt;br /&gt;
The Gmail block requires the rest of the Google-Moodle SSO system to be functional in order to operate properly.&lt;br /&gt;
&lt;br /&gt;
The Refresh Access Token Link will renew a users access token when it expires.  User&#039;s should seldom have to click this link to obtain a new access token from Google.&lt;br /&gt;
&lt;br /&gt;
Please note, that the system does not support Google&#039;s optional custom certificate authentication.&lt;br /&gt;
&lt;br /&gt;
If you are experiences SSO errors double check that your server time is in agreement with one of the internets many NTP servers. Your server and Google&#039;s systems must have proper time in order to process SSO requests properly.&lt;br /&gt;
&lt;br /&gt;
2 legged OAuth is no longer supported by Google&#039;s Gmail atom feed and thus has been removed from the system.&lt;br /&gt;
&lt;br /&gt;
Regarding General Maintenance&lt;br /&gt;
The Gmail block contains a local copy of Mozilla&#039;s Certification Authorities list.&lt;br /&gt;
&lt;br /&gt;
Overtime the Authority certificates bundle may need to be updated.&lt;br /&gt;
&lt;br /&gt;
If the Gmail block returns an error regarding SSL you may need to look into this issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Once the Moodle accounts are disabled, so are the Google accounts. However one could choose to grant access via Google to continue collaboration after a course is completed.&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
*Modules and Plugin page : [http://moodle.org/mod/data/view.php?d=13&amp;amp;mode=single&amp;amp;page=187 Modules and Plungin]&lt;br /&gt;
*Download:  [http://development.moodlerooms.com/mod/resource/view.php?id=210&amp;amp;subdir=/Google_1.0_for_Moodle_1.9 Google_1.0]_for_Moodle_1.9 on Moodlerooms.com no login required&lt;br /&gt;
*Discussion: [http://development.moodlerooms.com/course/view.php?id=30 Moodlerooms Moodle-Google course] - requires login to Moodlerooms&lt;br /&gt;
*[[Google gadgets]]- code to put into a Moodle HTML block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71522</id>
		<title>Google Apps Integration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71522"/>
		<updated>2010-04-26T17:25:01Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
Moodlerooms and Google have worked together to build a state of the art integration. The 1.0 version of the integration provides:&lt;br /&gt;
* Automatic creation of users in Google Apps (Google Docs™, Google Calendar™, and Gmail™) when they are created in Moodle&lt;br /&gt;
* Automatic log in to Google Apps when a user logs in to Moodle&lt;br /&gt;
* A Gmail block in Moodle that displays latest Gmail messages on the Moodle Front Page&lt;br /&gt;
* A Google Apps block on the Moodle Front Page displays links to Google Start Page, Google Docs, Google Calendar and Gmail&lt;br /&gt;
* A Moodle app on the Google Apps Start PageGoogle Apps can integrates with Moodle v1.9 and above.  There is a contributed code block that can be added to Moodle and a widget which can be added to Google. It will allow for a single sign-on for users from Moodle to Google.  &lt;br /&gt;
&lt;br /&gt;
=Integration Setup=&lt;br /&gt;
&lt;br /&gt;
There are a few steps involved with setting up the Google Apps Education Edition Integration. This setup should be configured by a technically knowledgeable Moodle administrator.&lt;br /&gt;
&lt;br /&gt;
# Set up Moodle&#039;s Authentication&lt;br /&gt;
# Set up Google&#039;s Authentication&lt;br /&gt;
# Add and configure the Gmail and Google Apps blocks&lt;br /&gt;
# Add and setup the User Sync block (optional; for those who do not have a Google account creation/management process)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
The following must be installed:&lt;br /&gt;
# auth/gsaml&lt;br /&gt;
# blocks/gmail&lt;br /&gt;
# blocks/gdata&lt;br /&gt;
# blocks/gaccess&lt;br /&gt;
# lib/zend&lt;br /&gt;
&lt;br /&gt;
==Generating Private Key and SSL signed Certificate==&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo openssl genrsa -des3 -out googleappsidp.key 1024&lt;br /&gt;
&lt;br /&gt;
sudo openssl rsa -in googleappsidp.key -out googleappsidp.pem&lt;br /&gt;
&lt;br /&gt;
sudo openssl req -new -key googleappsidp.key -out googleappsidp.csr&lt;br /&gt;
&lt;br /&gt;
sudo openssl x509 -req -days 9999 -in googleappsidp.csr -signkey googleappsidp.key -out googleappsidp.crt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Set Up Moodle&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# Log in to Moodle as an Administrator&lt;br /&gt;
# Click Notifications to update block tables&lt;br /&gt;
# Enable the Google Authentication plug-in from the Manage Plug-ins admin page&lt;br /&gt;
# In the Site Admin menu, select &amp;quot;Users.&amp;quot; Next, select &amp;quot;Authentication&amp;quot; and click &amp;quot;Google Authentication.&amp;quot;&lt;br /&gt;
# Enter your Google partner page domain name.&lt;br /&gt;
# Upload private key (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Upload the SSL signing certificate (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
&lt;br /&gt;
==Set Up Google&#039;s Authentication==&lt;br /&gt;
&lt;br /&gt;
# In a new browser window, log in to the Google Apps Control Panel page as an admin. To access this page, you can use this URL -- just change the end to have your partner page domain information: https://www.google.com/a/yourpartnerpagedomainname.com.&lt;br /&gt;
# Click the Advanced tools tab&lt;br /&gt;
# Click the Set up single sign-on (SSO) link next to Authentication&lt;br /&gt;
# Select the checkbox to &amp;quot;Enable Single Sign-on&amp;quot;&lt;br /&gt;
# Enter this URL into the Sign-in page URL text field:&lt;br /&gt;
##  http://&amp;lt;moodle site url&amp;gt;/login/index.php&lt;br /&gt;
# Enter this URL into the Sign-out page URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/logout.php&lt;br /&gt;
# Enter this URL into the Change password URL text field:&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/login/change_password.php&lt;br /&gt;
# Generate and upload a verification certificate to Google (X.509 certificate containing the public key)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Click the User Accounts tab&lt;br /&gt;
#This displays existing users as well as a message that says &amp;quot;You can create up to ### user accounts for this domain.&amp;quot; If you are using the Google User Sync block for account management, this number must match or be larger than the number of accounts you plan on creating. Request more accounts if you need them by clicking the request more link on this page.&lt;br /&gt;
# Click the Settings link. Check the box to &amp;quot;Enable provisioning API&amp;quot; (otherwise users will NOT be updated) (Users and Groups &amp;gt; Settings &amp;gt; Enable provisioning API must be checked.)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Next you will add and configure the blocks as well as the Moodle-Google Gadget. See the &amp;quot;Google Blocks Configuration&amp;quot; and &amp;quot;Moodle-Google Gadget Setup&amp;quot; tutorials for more information.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider:==&lt;br /&gt;
* The Gmail feed might not be found and display an error. Troubleshooting tips include:&lt;br /&gt;
** Turn on debugging and the diagnostics page will perform a basic check on the Gmail feed.&lt;br /&gt;
** If you are using the Google User Sync block, check to see if an admin or guest user has been added to the sync. If so, remove them.&lt;br /&gt;
** If you are using the Google User Sync block, be sure your Google user settings are set to allow the number users you are adding to the sync in Moodle. If the number of Moodle users is larger than the number set in Google, then those accounts will not be created or synced (ie, if Google is set to 1000 users and Moodle has 1500, 500 accounts will fail to be created or synced).&lt;br /&gt;
* The location of the Google Authentication Plug-in in the Authentication order is important. Currently, it needs to override a user&#039;s auth type when a Moodle user changes passwords. This behavior may affect M-Net users. A solution for this problem has not yet been found.&lt;br /&gt;
* Do not add a user to the sync if their user name has been deleted from Google. You need to wait five days before adding them to the User Sync.&lt;br /&gt;
* See the Diagnostics Page in the gsaml settings for more information about your setup.&lt;br /&gt;
&lt;br /&gt;
==Gmail Block Settings==&lt;br /&gt;
&lt;br /&gt;
In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
# Define the OAuth consumer secret. To find your consumer secret:&lt;br /&gt;
## Log in to http://www.google.com/a/YOURDOMAIN with your Google Admin account&lt;br /&gt;
## Click Advanced Tools&lt;br /&gt;
## Click Manage OAuth Access&lt;br /&gt;
## Copy the OAuth consumer secret from this screen and paste it into the Moodle text box&lt;br /&gt;
# Unread Message Count: Here, you can specify the number of unread messages to display in the Gmail block. Leave as zero for no limit.&lt;br /&gt;
# New Window Links: By default, the Gmail links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
# Show first name and Show last name: By default, the author&#039;s first and last name is displayed next to the e-mail title -- uncheck these settings to hide.&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
==Google Apps Settings==&lt;br /&gt;
In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
By default, Google Apps will open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
&lt;br /&gt;
==Google User Sync Block Settings==&lt;br /&gt;
Google User Sync can be configured from the settings link inside the block. The same settings can be found in the Site Administration area. In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks. For information on how to configure the Google User Sync, see the &amp;quot;Google User Sync Settings&amp;quot; tutorial. &lt;br /&gt;
&lt;br /&gt;
==Moodle-Google Gadget Setup==&lt;br /&gt;
To set up the Moodle-Google gadget, you need to first set up and configure the Google Apps Education Edition Integration. To complete this process, you must be an admin for both the Moodle installation and the Google installation.&lt;br /&gt;
&lt;br /&gt;
# Log in to the Google Control Panel as an admin. Use the link below, substituting your Google domain name for &amp;quot;mroomsdev.com&amp;quot;&lt;br /&gt;
## https://www.google.com/a/mroomsdev.com&lt;br /&gt;
# Click the Service Settings tab, then the Start Page link.&lt;br /&gt;
# Click Customize and Publish&lt;br /&gt;
# Click Select default content&lt;br /&gt;
# Click Refresh default content below to make the Add stuff link appear&lt;br /&gt;
# Click Add stuff&lt;br /&gt;
# Click Add by URL&lt;br /&gt;
# Paste the following URL, substituting your Moodle domain name for &amp;quot;test.mroomsdev.com&amp;quot;&lt;br /&gt;
## http://&amp;lt;moodle site url&amp;gt;/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# Click close&lt;br /&gt;
# Click Back to Homepage&lt;br /&gt;
# You should see the Moodle Gadget appear&lt;br /&gt;
# Lastly, be sure to click the Publish link in the furthest upper right-hand corner.&lt;br /&gt;
&lt;br /&gt;
==Things to Consider==&lt;br /&gt;
&lt;br /&gt;
The Moodle-Google Gadget is a beta prototype. In the future, it may be much more useful. Currently, there is a known bug regarding the Gadget not updating immediately upon install. Developers are looking into it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
*Moodle users are automatically created in Google Apps (Google Docs, Calendar, and Gmail).&lt;br /&gt;
*When you log in to Moodle, you are automatically logged in to Google Apps.&lt;br /&gt;
*A Gmail block in Moodle displays your latest Gmail messages when you login to the Moodle Front Page.&lt;br /&gt;
*A Google Apps block on the Moodle Front Page displays links to your Google Start Page, Google Docs, Google Calendar and Gmail.&lt;br /&gt;
*A Google Widget shows a link to Moodle on the Google side.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Essentially, once the integration is complete, students will be presented with a Google Apps block that will link out to their Google account.  This will allow Moodle students to work online collaboratively rather than each downloading a document, making edits, uploading it to Moodle and then comparing with other documents.  &lt;br /&gt;
&lt;br /&gt;
This would be great for online group activities or exercises, collaborative websites and collaborative calendars.  &lt;br /&gt;
&lt;br /&gt;
==How to set up==&lt;br /&gt;
As an admin, you need to coordinate your Moodle accounts with your Google accounts.  Set up an Admin Account at Google - this is generally free if you are an educator.  Each student in Moodle that is synced with Google apps will be granted a Gmail acccount.  As a site admin or teacher, you will need to determine if you class(es) will use Gmail services to communicate or if you want to use the email address associated with your Moodle account (in some cases they could be the same).&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Once the Moodle accounts are disabled, so are the Google accounts. However one could choose to grant access via Google to continue collaboration after a course is completed.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*Modules and Plugin page : [http://moodle.org/mod/data/view.php?d=13&amp;amp;mode=single&amp;amp;page=187 Modules and Plungin]&lt;br /&gt;
*Download:  [http://development.moodlerooms.com/mod/resource/view.php?id=210&amp;amp;subdir=/Google_1.0_for_Moodle_1.9 Google_1.0]_for_Moodle_1.9 on Moodlerooms.com no login required&lt;br /&gt;
*Discussion: [http://development.moodlerooms.com/course/view.php?id=30 Moodlerooms Moodle-Google course] - requires login to Moodlerooms&lt;br /&gt;
*[[Google gadgets]]- code to put into a Moodle HTML block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71521</id>
		<title>Google Apps Integration</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Google_Apps_Integration&amp;diff=71521"/>
		<updated>2010-04-26T17:19:48Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Google Apps Education Edition™ Integration=&lt;br /&gt;
==Introduction==&lt;br /&gt;
Moodlerooms and Google have worked together to build a state of the art integration. The 1.0 version of the integration provides:&lt;br /&gt;
    * Automatic creation of users in Google Apps (Google Docs™, Google Calendar™, and Gmail™) when they are created in Moodle&lt;br /&gt;
    * Automatic log in to Google Apps when a user logs in to Moodle&lt;br /&gt;
    * A Gmail block in Moodle that displays latest Gmail messages on the Moodle Front Page&lt;br /&gt;
    * A Google Apps block on the Moodle Front Page displays links to Google Start Page, Google Docs, Google Calendar and Gmail&lt;br /&gt;
    * A Moodle app on the Google Apps Start PageGoogle Apps can integrates with Moodle v1.9 and above.  There is a contributed code block that can be added to Moodle and a widget which can be added to Google. It will allow for a single sign-on for users from Moodle to Google.  &lt;br /&gt;
&lt;br /&gt;
==Integration Setup==&lt;br /&gt;
&lt;br /&gt;
There are a few steps involved with setting up the Google Apps Education Edition Integration. This setup should be configured by a technically knowledgeable Moodle administrator.&lt;br /&gt;
&lt;br /&gt;
# Set up Moodle&#039;s Authentication&lt;br /&gt;
# Set up Google&#039;s Authentication&lt;br /&gt;
# Add and configure the Gmail and Google Apps blocks&lt;br /&gt;
# Add and setup the User Sync block (optional; for those who do not have a Google account creation/management process)&lt;br /&gt;
&lt;br /&gt;
===Requirements===&lt;br /&gt;
&lt;br /&gt;
# gsaml, gaccess, gmail, gdata and lib/zend code must be installed&lt;br /&gt;
** auth/gsaml&lt;br /&gt;
** blocks/gmail&lt;br /&gt;
** blocks/gdata&lt;br /&gt;
** blocks/gaccess&lt;br /&gt;
** lib/zend&lt;br /&gt;
&lt;br /&gt;
===Generating Private Key and SSL signed Certificate===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo openssl genrsa -des3 -out googleappsidp.key 1024 &lt;br /&gt;
sudo openssl rsa -in googleappsidp.key -out googleappsidp.pem&lt;br /&gt;
sudo openssl req -new -key googleappsidp.key -out googleappsidp.csr&lt;br /&gt;
sudo openssl x509 -req -days 9999 -in googleappsidp.csr -signkey googleappsidp.key -out googleappsidp.crt&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Set Up Moodle&#039;s Authentication===&lt;br /&gt;
&lt;br /&gt;
# Log in to Moodle as an Administrator&lt;br /&gt;
# Click Notifications to update block tables&lt;br /&gt;
# Enable the Google Authentication plug-in from the Manage Plug-ins admin page&lt;br /&gt;
# In the Site Admin menu, select &amp;quot;Users.&amp;quot; Next, select &amp;quot;Authentication&amp;quot; and click &amp;quot;Google Authentication.&amp;quot;&lt;br /&gt;
# Enter your Google partner page domain name.&lt;br /&gt;
# Upload private key (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Upload the SSL signing certificate (for more information on creating this, refer to Google documentation regarding key generation)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
&lt;br /&gt;
===Set Up Google&#039;s Authentication===&lt;br /&gt;
&lt;br /&gt;
# In a new browser window, log in to the Google Apps Control Panel page as an admin. To access this page, you can use this URL -- just change the end to have your partner page domain information: https://www.google.com/a/yourpartnerpagedomainname.com.&lt;br /&gt;
# Click the Advanced tools tab&lt;br /&gt;
# Click the Set up single sign-on (SSO) link next to Authentication&lt;br /&gt;
# Select the checkbox to &amp;quot;Enable Single Sign-on&amp;quot;&lt;br /&gt;
# Enter this URL into the Sign-in page URL text field:&lt;br /&gt;
**  http://&amp;lt;moodle site url&amp;gt;/login/index.php&lt;br /&gt;
# Enter this URL into the Sign-out page URL text field:&lt;br /&gt;
** http://&amp;lt;moodle site url&amp;gt;/login/logout.php&lt;br /&gt;
# Enter this URL into the Change password URL text field:&lt;br /&gt;
** http://&amp;lt;moodle site url&amp;gt;/login/change_password.php&lt;br /&gt;
# Generate and upload a verification certificate to Google (X.509 certificate containing the public key)&lt;br /&gt;
**&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Click the User Accounts tab&lt;br /&gt;
#This displays existing users as well as a message that says &amp;quot;You can create up to ### user accounts for this domain.&amp;quot; If you are using the Google User Sync block for account management, this number must match or be larger than the number of accounts you plan on creating. Request more accounts if you need them by clicking the request more link on this page.&lt;br /&gt;
# Click the Settings link. Check the box to &amp;quot;Enable provisioning API&amp;quot; (otherwise users will NOT be updated) (Users and Groups &amp;gt; Settings &amp;gt; Enable provisioning API must be checked.)&lt;br /&gt;
# Click Save Changes&lt;br /&gt;
# Next you will add and configure the blocks as well as the Moodle-Google Gadget. See the &amp;quot;Google Blocks Configuration&amp;quot; and &amp;quot;Moodle-Google Gadget Setup&amp;quot; tutorials for more information.&lt;br /&gt;
&lt;br /&gt;
===Things to Consider:===&lt;br /&gt;
* The Gmail feed might not be found and display an error. Troubleshooting tips include:&lt;br /&gt;
** Turn on debugging and the diagnostics page will perform a basic check on the Gmail feed.&lt;br /&gt;
** If you are using the Google User Sync block, check to see if an admin or guest user has been added to the sync. If so, remove them.&lt;br /&gt;
** If you are using the Google User Sync block, be sure your Google user settings are set to allow the number users you are adding to the sync in Moodle. If the number of Moodle users is larger than the number set in Google, then those accounts will not be created or synced (ie, if Google is set to 1000 users and Moodle has 1500, 500 accounts will fail to be created or synced).&lt;br /&gt;
* The location of the Google Authentication Plug-in in the Authentication order is important. Currently, it needs to override a user&#039;s auth type when a Moodle user changes passwords. This behavior may affect M-Net users. A solution for this problem has not yet been found.&lt;br /&gt;
* Do not add a user to the sync if their user name has been deleted from Google. You need to wait five days before adding them to the User Sync.&lt;br /&gt;
* See the Diagnostics Page in the gsaml settings for more information about your setup.&lt;br /&gt;
&lt;br /&gt;
===Gmail Block Settings===&lt;br /&gt;
&lt;br /&gt;
In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
# Define the OAuth consumer secret. To find your consumer secret:&lt;br /&gt;
** Log in to http://www.google.com/a/YOURDOMAIN with your Google Admin account&lt;br /&gt;
** Click Advanced Tools&lt;br /&gt;
** Click Manage OAuth Access&lt;br /&gt;
** Copy the OAuth consumer secret from this screen and paste it into the Moodle text box&lt;br /&gt;
# Unread Message Count: Here, you can specify the number of unread messages to display in the Gmail block. Leave as zero for no limit.&lt;br /&gt;
# New Window Links: By default, the Gmail links open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
# Show first name and Show last name: By default, the author&#039;s first and last name is displayed next to the e-mail title -- uncheck these settings to hide.&lt;br /&gt;
# Save changes&lt;br /&gt;
&lt;br /&gt;
===Google Apps Settings===&lt;br /&gt;
In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks&lt;br /&gt;
By default, Google Apps will open in a new browser window or tab. You can change this to open in the same window by unchecking this setting.&lt;br /&gt;
&lt;br /&gt;
===Google User Sync Block Settings===&lt;br /&gt;
Google User Sync can be configured from the settings link inside the block. The same settings can be found in the Site Administration area. In Site Admin, go to Modules &amp;gt; Blocks &amp;gt; Manage Blocks. For information on how to configure the Google User Sync, see the &amp;quot;Google User Sync Settings&amp;quot; tutorial. &lt;br /&gt;
&lt;br /&gt;
===Moodle-Google Gadget Setup===&lt;br /&gt;
To set up the Moodle-Google gadget, you need to first set up and configure the Google Apps Education Edition Integration. To complete this process, you must be an admin for both the Moodle installation and the Google installation.&lt;br /&gt;
&lt;br /&gt;
# Log in to the Google Control Panel as an admin. Use the link below, substituting your Google domain name for &amp;quot;mroomsdev.com&amp;quot;&lt;br /&gt;
** https://www.google.com/a/mroomsdev.com&lt;br /&gt;
# Click the Service Settings tab, then the Start Page link.&lt;br /&gt;
# Click Customize and Publish&lt;br /&gt;
# Click Select default content&lt;br /&gt;
# Click Refresh default content below to make the Add stuff link appear&lt;br /&gt;
# Click Add stuff&lt;br /&gt;
# Click Add by URL&lt;br /&gt;
# Paste the following URL, substituting your Moodle domain name for &amp;quot;test.mroomsdev.com&amp;quot;&lt;br /&gt;
** http://&amp;lt;moodle site url&amp;gt;/auth/gsaml/moodlegadget.php&lt;br /&gt;
# Click Add&lt;br /&gt;
# Click close&lt;br /&gt;
# Click Back to Homepage&lt;br /&gt;
# You should see the Moodle Gadget appear&lt;br /&gt;
#  Lastly, be sure to click the Publish link in the furthest upper right-hand corner.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Things to Consider===&lt;br /&gt;
&lt;br /&gt;
The Moodle-Google Gadget is a beta prototype. In the future, it may be much more useful. Currently, there is a known bug regarding the Gadget not updating immediately upon install. Developers are looking into it. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
*Moodle users are automatically created in Google Apps (Google Docs, Calendar, and Gmail).&lt;br /&gt;
*When you log in to Moodle, you are automatically logged in to Google Apps.&lt;br /&gt;
*A Gmail block in Moodle displays your latest Gmail messages when you login to the Moodle Front Page.&lt;br /&gt;
*A Google Apps block on the Moodle Front Page displays links to your Google Start Page, Google Docs, Google Calendar and Gmail.&lt;br /&gt;
*A Google Widget shows a link to Moodle on the Google side.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Essentially, once the integration is complete, students will be presented with a Google Apps block that will link out to their Google account.  This will allow Moodle students to work online collaboratively rather than each downloading a document, making edits, uploading it to Moodle and then comparing with other documents.  &lt;br /&gt;
&lt;br /&gt;
This would be great for online group activities or exercises, collaborative websites and collaborative calendars.  &lt;br /&gt;
&lt;br /&gt;
==How to set up==&lt;br /&gt;
As an admin, you need to coordinate your Moodle accounts with your Google accounts.  Set up an Admin Account at Google - this is generally free if you are an educator.  Each student in Moodle that is synced with Google apps will be granted a Gmail acccount.  As a site admin or teacher, you will need to determine if you class(es) will use Gmail services to communicate or if you want to use the email address associated with your Moodle account (in some cases they could be the same).&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Once the Moodle accounts are disabled, so are the Google accounts. However one could choose to grant access via Google to continue collaboration after a course is completed.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*Modules and Plugin page : [http://moodle.org/mod/data/view.php?d=13&amp;amp;mode=single&amp;amp;page=187 Modules and Plungin]&lt;br /&gt;
*Download:  [http://development.moodlerooms.com/mod/resource/view.php?id=210&amp;amp;subdir=/Google_1.0_for_Moodle_1.9 Google_1.0]_for_Moodle_1.9 on Moodlerooms.com no login required&lt;br /&gt;
*Discussion: [http://development.moodlerooms.com/course/view.php?id=30 Moodlerooms Moodle-Google course] - requires login to Moodlerooms&lt;br /&gt;
*[[Google gadgets]]- code to put into a Moodle HTML block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_display_themed_resource.png&amp;diff=70406</id>
		<title>Fitxer:themed resource display themed resource.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_display_themed_resource.png&amp;diff=70406"/>
		<updated>2010-03-31T03:30:09Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_choose.png&amp;diff=70405</id>
		<title>Fitxer:themed resource choose.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_choose.png&amp;diff=70405"/>
		<updated>2010-03-31T03:29:48Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_theme_upload.png&amp;diff=70404</id>
		<title>Fitxer:themed resource theme upload.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_theme_upload.png&amp;diff=70404"/>
		<updated>2010-03-31T03:28:10Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_upload_button.png&amp;diff=70403</id>
		<title>Fitxer:themed resource upload button.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_upload_button.png&amp;diff=70403"/>
		<updated>2010-03-31T03:27:48Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_upload.png&amp;diff=70402</id>
		<title>Fitxer:themed resource upload.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_upload.png&amp;diff=70402"/>
		<updated>2010-03-31T03:26:44Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_content_drop_down.png&amp;diff=70401</id>
		<title>Fitxer:themed content drop down.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_content_drop_down.png&amp;diff=70401"/>
		<updated>2010-03-31T03:26:25Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:manage_activities_tab.png&amp;diff=70399</id>
		<title>Fitxer:manage activities tab.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:manage_activities_tab.png&amp;diff=70399"/>
		<updated>2010-03-31T03:24:03Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themedprnt.jpg&amp;diff=70398</id>
		<title>Fitxer:themedprnt.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themedprnt.jpg&amp;diff=70398"/>
		<updated>2010-03-31T03:23:56Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_editing_off.png&amp;diff=70397</id>
		<title>Fitxer:themed resource editing off.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_editing_off.png&amp;diff=70397"/>
		<updated>2010-03-31T03:23:40Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_in_page.png&amp;diff=70396</id>
		<title>Fitxer:themed resource in page.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:themed_resource_in_page.png&amp;diff=70396"/>
		<updated>2010-03-31T03:23:31Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:trmenu.png&amp;diff=70395</id>
		<title>Fitxer:trmenu.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:trmenu.png&amp;diff=70395"/>
		<updated>2010-03-31T03:23:23Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Trouble_Ticket_block&amp;diff=70391</id>
		<title>Trouble Ticket block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Trouble_Ticket_block&amp;diff=70391"/>
		<updated>2010-03-31T03:06:15Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: /* Block Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Block Description=&lt;br /&gt;
&lt;br /&gt;
The trouble ticket block was developed to provide Moodle users with a simple way to notify Moodle site administrators of a problem with the site or a specific module or block. The trouble ticket block allows Teachers to add multiple types of trouble tickets to a page as either a link or a button. Each Trouble ticket can be configured with a specific email to send the notification to as well as a custom response to the user.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Developers&#039;&#039;&#039;&lt;br /&gt;
Moodlerooms Inc., Mike Avelar, Sam Chaffee, Jason Hardin, Mark Nielsen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
== See also ==&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Block]]&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Trouble_Ticket_block&amp;diff=70390</id>
		<title>Trouble Ticket block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Trouble_Ticket_block&amp;diff=70390"/>
		<updated>2010-03-31T03:05:54Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: New page: =Block Description=  The trouble ticket block was developed to provide Moodle users with a simple way to notify Moodle site administrators of a problem with the site or a specific module o...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Block Description=&lt;br /&gt;
&lt;br /&gt;
The trouble ticket block was developed to provide Moodle users with a simple way to notify Moodle site administrators of a problem with the site or a specific module or block. The trouble ticket block allows Teachers to add multiple types of trouble tickets to a page as either a link or a button. Each Trouble ticket can be configured with a specific email to send the notification to as well as a custom response to the user.&lt;br /&gt;
&lt;br /&gt;
*Developers*&lt;br /&gt;
Moodlerooms Inc., Mike Avelar, Sam Chaffee, Jason Hardin, Mark Nielsen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
== See also ==&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Block]]&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_deleted_success.png&amp;diff=70341</id>
		<title>Fitxer:dmc deleted success.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_deleted_success.png&amp;diff=70341"/>
		<updated>2010-03-30T06:41:55Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_confirmation.png&amp;diff=70340</id>
		<title>Fitxer:dmc confirmation.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_confirmation.png&amp;diff=70340"/>
		<updated>2010-03-30T06:41:47Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_select_delete.png&amp;diff=70339</id>
		<title>Fitxer:dmc select delete.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_select_delete.png&amp;diff=70339"/>
		<updated>2010-03-30T06:41:41Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_landing.png&amp;diff=70338</id>
		<title>Fitxer:dmc landing.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:dmc_landing.png&amp;diff=70338"/>
		<updated>2010-03-30T06:41:30Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:delete_courses.png&amp;diff=70337</id>
		<title>Fitxer:delete courses.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:delete_courses.png&amp;diff=70337"/>
		<updated>2010-03-30T06:41:22Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Course_Management_block&amp;diff=70336</id>
		<title>Course Management block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Course_Management_block&amp;diff=70336"/>
		<updated>2010-03-30T06:40:47Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Block Description=&lt;br /&gt;
&lt;br /&gt;
The course management block was developed to increase site administrator’s productivity and reduce peak load on Moodle servers caused by the restoring of courses. The Course management block allows Moodle site administrators to schedule restores of courses at non-peak Moodle usage times. It also allows Moodle site administrators to delete multiple courses at one time from one user interface.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Developers&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Moodlerooms Inc, Michael Avelar, Sam Chaffee&lt;br /&gt;
&lt;br /&gt;
=Global Configuration Settings=&lt;br /&gt;
To get to this block&#039;s global setting options, at the site page, click to &#039;Modules&#039;&amp;gt;&#039;Blocks&#039;&amp;gt;&#039;Course Management&#039;. This screen provides 3 options for the block:&lt;br /&gt;
&lt;br /&gt;
Max Restores: The maximum number of restores a restore is allow&lt;br /&gt;
Ignore Currently Processing Flag: Allows the cron to be forced out of turn&lt;br /&gt;
Enable Email Notification: Site Admin (Default) or alternate contact, will receive email notifications if an error occurs.&lt;br /&gt;
&lt;br /&gt;
[[Image:block_setup.png|block setup]]&lt;br /&gt;
&lt;br /&gt;
=Choose a Restore File (No Metadata file)=&lt;br /&gt;
Make sure you are on the site home page, then click on the &#039;Schedule Bulk Restore&#039; link to start the bulk restore scheduling process&lt;br /&gt;
.&lt;br /&gt;
[[Image:block_iface.png]]&lt;br /&gt;
&lt;br /&gt;
You will now see two sections: &#039;Choose a course to restore:&#039; and &#039;Choose a course metadata file&#039;. Only the first section has a required input field. To choose a restore zip:&lt;br /&gt;
&lt;br /&gt;
# First, choose the location for the zip file. The site directory is chosen by default. If the restore zip is located in a course, choose that course&#039;s shortname from the dropdown.&lt;br /&gt;
# Click the &#039;Choose from Selected Course&#039; button&lt;br /&gt;
# Navigate to the restore zip (if necessary), then click on the &#039;Choose&#039; link next to the resource name.&lt;br /&gt;
&lt;br /&gt;
[[Image:choose_file.png]]&lt;br /&gt;
&lt;br /&gt;
The section here shows how to use the metadata section to help automate the next few steps. For now, we&#039;ll show how to setup the specifics manually.&lt;br /&gt;
Click &#039;Continue&#039;. There should be a brief pause, then you should see the following message:&lt;br /&gt;
&lt;br /&gt;
[[Image:restore_validated.png]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;Continue&#039;. This next screen is the final step in the restore scheduling process.&lt;br /&gt;
&lt;br /&gt;
=Setup Restore Options (No Metadata file)=&lt;br /&gt;
The final screen should be split up into 4 sections: &#039;Course Defaults&#039;, &#039;Restore Options&#039;, &#039;Role Mappings&#039;, and &#039;Cron Settings&#039;. When a metadata file was not uploaded, most of these options will be available to you. If a metadata file was uploaded, most of these options will be preselected for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Course Defaults==&lt;br /&gt;
&lt;br /&gt;
The &#039;Course Defaults&#039; section should be filled out with data from the original restore. There are four fields in this section:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Category&#039;&#039;&#039;: The &#039;Category&#039; section will default to the category the backup course originated from.&lt;br /&gt;
* &#039;&#039;&#039;Short Name&#039;&#039;&#039;: The &#039;Short Name&#039; field will be filled out with the original courses shortname.&lt;br /&gt;
* &#039;&#039;&#039;Full Name&#039;&#039;&#039;: The &#039;Full Name&#039; field will be filled out with the original courses fullname.&lt;br /&gt;
* &#039;&#039;&#039;Course Start Date&#039;&#039;&#039;: The &#039;Course Start Date&#039; field should also be populated with the original date (depending on original backup options)&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039;: If another course already exist on the site with the same short/fullnames, the new course(s) will be appended with a number to differentiate the courses.&lt;br /&gt;
&lt;br /&gt;
[[Image:course_defaults.png]]&lt;br /&gt;
&lt;br /&gt;
==Restore Options==&lt;br /&gt;
&lt;br /&gt;
Restore options availability are largely determined by the original backup file&#039;s backup options. EG: If not marked as a metacourse, the &#039;Metacourse&#039; dropdown will be disabled. If the backup file didn&#039;t backup the Log records, the &#039;Logs&#039; option will be disabled. There are 6-7 fields here (Depending on the original backup options):&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Metacourse&#039;&#039;&#039;: Restores this course as a metacourse&lt;br /&gt;
* &#039;&#039;&#039;Users&#039;&#039;&#039;: Restores this courses users&lt;br /&gt;
* &#039;&#039;&#039;Logs&#039;&#039;&#039;: Restores the old log records specific to the old course&lt;br /&gt;
* &#039;&#039;&#039;User Files&#039;&#039;&#039;: Restores all user&#039;s files into the new course directory&lt;br /&gt;
* &#039;&#039;&#039;Course Files&#039;&#039;&#039;: Restores all course level files into the new course directory&lt;br /&gt;
* &#039;&#039;&#039;Restore how many times?&#039;&#039;&#039;: How many times this course should be copied. Maximum number is determined at the global config level (see here&lt;br /&gt;
*NOTE: All options default to &#039;No&#039;/&#039;None&#039; to decrease processing time. All option availability is determined by the original backup&#039;s settings.&lt;br /&gt;
&lt;br /&gt;
[[Image:restore_options.png]]&lt;br /&gt;
&lt;br /&gt;
==Role Mappings==&lt;br /&gt;
&lt;br /&gt;
This section allows you to optionally remap incomming user roles to another role on your Moodle installation. The length of this list is dependent upon the number of assigned roles in the old course. If there is a role match on your installation, it will be selected by default. If there is no match (eg: came from another installation), &#039;Choose a Role...&#039; will be selected and a valid role must be selected before continuing.&lt;br /&gt;
&lt;br /&gt;
[[Image:role_mappings.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Cron Settings==&lt;br /&gt;
&lt;br /&gt;
This section is the only part specific to this block. This is where you set the details for the restore to be run on the cron job. There are 3 fields here:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Start Time&#039;&#039;&#039;: The &#039;Start Time&#039; prevents this restore from starting a process on the cron any time before the &#039;Start Time&#039;.&lt;br /&gt;
* &#039;&#039;&#039;End Time&#039;&#039;&#039;: The &#039;End Time&#039; prevents this restore from starting a process on the cron any time on or after the &#039;End Time&#039;.&lt;br /&gt;
* &#039;&#039;&#039;Priority&#039;&#039;&#039;: Priority is either &#039;Low&#039; or &#039;High&#039;, and helps the cron to determine which process should be run first. The restore is brought in for next processing following this process:&lt;br /&gt;
** Cron grabs all records that meet the following criteria:&lt;br /&gt;
*** Is the scheduled restore have any restores left to process?&lt;br /&gt;
*** Is the Current time greater than or equal to the Start Time?&lt;br /&gt;
*** Is the Current time less than End Time?&lt;br /&gt;
** All restores that satisfy the above three questions are then further processed. If any are high priority, the low priority restores are automatically removed. The remaining restores then compare their time created timestamp, and the oldest restore is then selected to be processed next.&lt;br /&gt;
*NOTE: All times are relative to the current server time, and are approximate.&lt;br /&gt;
*NOTE: Cron runs approximately every 15 minutes on a default Moodle install. This means that cron times are approximated to 15 minutes + cron approximation.&lt;br /&gt;
[[Image:cron_settings.png]]&lt;br /&gt;
&lt;br /&gt;
=Choose a Restore File &amp;amp; Metadata CSV=&lt;br /&gt;
Restoring a course with some metadata defined really only requires one extra step. You must upload a csv file with some requuired fields. The CSV File should look like the following:&lt;br /&gt;
&lt;br /&gt;
[[Image:csv.png]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;shortname&#039;&#039;&#039;: The shortname is the unique short name for the course, each entry in this field must be unique (meaning you cannot have more than one of the same shortname) or you will get an error when validating the CSV file.&lt;br /&gt;
* &#039;&#039;&#039;fullname&#039;&#039;&#039;: The fullname is the full name of the course, it does not need to be unique.&lt;br /&gt;
* &#039;&#039;&#039;description: The description is the course&#039;s description.&lt;br /&gt;
* &#039;&#039;&#039;sitecat&#039;&#039;&#039;: The sitecat is the Category on the site you want the course to be placed in. If you are using sub-categories, then put in the category path (Category/Sub-Category/Sub-sub Category). The sitecat must match the existing course&#039;s category or you will get an error message.&lt;br /&gt;
* &#039;&#039;&#039;startdate&#039;&#039;&#039;: The startdate is the start date for the course. It must be in mm/dd/yyyy, yyyy/mm/dd or mm/dd/yy format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, follow steps 1, 2, &amp;amp; 3 only, then instead of clicking continue, go to the &#039;Choose course metadata file&#039; section. Choose a target course where your CSV is located (&#039;Choose File Location Course&#039;), then click &#039;Choose From Selected Course&#039;. Navigate to your csv file (or upload it then), then click the &#039;Choose&#039; link next to the resource.&lt;br /&gt;
&lt;br /&gt;
[[Image:choose_metadata.png]]&lt;br /&gt;
&lt;br /&gt;
Now, click continue. You should see a green &#039;Validating...&#039; notice at the top of the screen, then if everything is valid, you should see the following screen:&lt;br /&gt;
&lt;br /&gt;
[[Image:restore_meta_validated.png]]&lt;br /&gt;
&lt;br /&gt;
Click &#039;Continue&#039; to go to the final step in the scheduling process.&lt;br /&gt;
&lt;br /&gt;
an interface to set up the bulk creation includes identifying the zip file to restore from. an interface or a spreadsheet to upload data from with the following attributes: Course name Course description Site category Primary Facilitator ID Facilitator ID&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=View Restore Schedule=&lt;br /&gt;
The View Restore Schedule option on the Course Management block allows the user with appropriate capabilities to view, edit, process, view error details, and reschedule a restore. To get to this page from the site home-page, click on the View Restore Schedule link in the Course Management block.&lt;br /&gt;
&lt;br /&gt;
[[Image:vrs_menu.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==View Restore Schedule Landing Page==&lt;br /&gt;
[[Image:vrs_view.png]]&lt;br /&gt;
&lt;br /&gt;
==Show Active Schedules Button==&lt;br /&gt;
&lt;br /&gt;
The landing page may look complicated, but it most of it is informational. The Show only Active Schedules button toggles display of the restores. This is the default, which displays completed/in-progress/failed restores. If clicked, this will display Show All Scheduled. When only the active are displayed, only the in-progress/failed restores remain visible.&lt;br /&gt;
&lt;br /&gt;
==Currently Processing: Yes/No flag==&lt;br /&gt;
&lt;br /&gt;
This text area notifies the user if a restore is currently processing that was triggered from this block.&lt;br /&gt;
&lt;br /&gt;
==List of Restores==&lt;br /&gt;
&lt;br /&gt;
Restores are listed with the most recently created restore at the top and the oldest at the bottom. However, this is not necessarily the order that these restores will be processed (see Cron Settings for more information).&lt;br /&gt;
&lt;br /&gt;
==Process Next Restore Now==&lt;br /&gt;
&lt;br /&gt;
This button fires the same restore process that the Moodle cron would run, but does so independently of the cron and does so immediately. &lt;br /&gt;
*NOTE: This feature may be disabled if a restore is currently running if the global settings are set as such.&lt;br /&gt;
&lt;br /&gt;
There are two ways to run the restore process &#039;manually&#039;, either by using the Process Next Restore Now button, or by visiting the Moodle cron script via the url (http://yourmoodlesite/admin/cron.php). Running the cron via the url method, then refreshing the View Restore Schedule page should show the Currently Processing flag as &#039;Yes&#039;, if the restored class is a larger class.&lt;br /&gt;
&lt;br /&gt;
[[Image:vrs_curr_yess.png]]&lt;br /&gt;
&lt;br /&gt;
==Restore Actions==&lt;br /&gt;
&lt;br /&gt;
The red X icon in the Actions column in the List of Restores section cancels the selected restore. It does so by setting the Remaining number of restores to 0, so the restore will no longer be in queue to be processed.&lt;br /&gt;
&lt;br /&gt;
The standard Moodle Edit button allows you to modify only the cron for that restore, to allow the admin to &#039;reorder&#039; restores as necessary.&lt;br /&gt;
&lt;br /&gt;
[[Image:vrs_edit_restore.png]]&lt;br /&gt;
&lt;br /&gt;
==Status: Failed==&lt;br /&gt;
&lt;br /&gt;
If for some reason a restore fails from anywhere, the restores&#039; Status column will be filled with a linked, red Failed link, which can be clicked for details on the error, and potential resolution.&lt;br /&gt;
&lt;br /&gt;
[[Image:vrs_failed_restore.png]]&lt;br /&gt;
[[Image:vrs_failed_restore_details.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The error shown above details missing data files (eg: files were renamed, moved, or deleted). If the files can be replaced in the same location as before, the restore can be rescheduled and successfully run again.&lt;br /&gt;
&lt;br /&gt;
=Delete Multiple Courses=&lt;br /&gt;
&lt;br /&gt;
[[Image:delete_courses.png]]&lt;br /&gt;
&lt;br /&gt;
This feature provides an easy, searchable and sortable interface to select and delete multiple courses. You can filter courses by their parent Course Category, and further filter results with the search field, which will search the fullname of the course for a matching string.&lt;br /&gt;
&lt;br /&gt;
[[Image:dmc_landing.png]]&lt;br /&gt;
&lt;br /&gt;
After finding the courses you wish to completely delete, check the boxes, and select Delete from the With Selected... option box.&lt;br /&gt;
&lt;br /&gt;
[[Image:dmc_select_delete.png]]&lt;br /&gt;
&lt;br /&gt;
You will then see a Confirmation notice, since this will delete ALL data associated with the selected courses.&lt;br /&gt;
&lt;br /&gt;
[[Image:dmc_confirmation.png]]&lt;br /&gt;
&lt;br /&gt;
After confirming the courses to delete, each deleted item&#039;s status will be output, along with a green Success notification at the end of each class.&lt;br /&gt;
*NOTE: This process can take a long time, depending on the size and content of each of the selected courses.&lt;br /&gt;
&lt;br /&gt;
[[Image:dmc_deleted_success.png]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
== See also ==&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Block]]&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:role_mappings.png&amp;diff=70335</id>
		<title>Fitxer:role mappings.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:role_mappings.png&amp;diff=70335"/>
		<updated>2010-03-30T06:37:59Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_failed_restore_details.png&amp;diff=70334</id>
		<title>Fitxer:vrs failed restore details.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_failed_restore_details.png&amp;diff=70334"/>
		<updated>2010-03-30T06:37:52Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_failed_restore.png&amp;diff=70333</id>
		<title>Fitxer:vrs failed restore.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_failed_restore.png&amp;diff=70333"/>
		<updated>2010-03-30T06:37:44Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_edit_restore.png&amp;diff=70332</id>
		<title>Fitxer:vrs edit restore.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_edit_restore.png&amp;diff=70332"/>
		<updated>2010-03-30T06:37:36Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_curr_yess.png&amp;diff=70331</id>
		<title>Fitxer:vrs curr yess.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_curr_yess.png&amp;diff=70331"/>
		<updated>2010-03-30T06:37:29Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_view.png&amp;diff=70330</id>
		<title>Fitxer:vrs view.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/2x/ca/index.php?title=Fitxer:vrs_view.png&amp;diff=70330"/>
		<updated>2010-03-30T06:37:23Z</updated>

		<summary type="html">&lt;p&gt;Psychoph: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Psychoph</name></author>
	</entry>
</feed>