Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the correct user time zone from AAD to Moodle when provisioning. #1389

Closed
swinster opened this issue Oct 2, 2020 · 4 comments · Fixed by #1432 or #1433
Closed

Setting the correct user time zone from AAD to Moodle when provisioning. #1389

swinster opened this issue Oct 2, 2020 · 4 comments · Fixed by #1432 or #1433
Assignees

Comments

@swinster
Copy link

swinster commented Oct 2, 2020

How is it possible to ensure that the correct timezone is set of a Moodle user that has been provisioned from a sync via the MS365 plugin? We have global user and without timezones being set correctly, various Moodle feature such as appointment schedules, do not work as expected.

@weilai-irl weilai-irl self-assigned this Oct 9, 2020
@weilai-irl weilai-irl added this to the Release 2020-11 milestone Oct 9, 2020
This was linked to pull requests Oct 9, 2020
@weilai-irl
Copy link
Collaborator

Hi @swinster,

Release 3.8.0.5 and 3.9.2 of the plugins introduced the support for syncing Outlook timezones. The option is available in the sync settings tab in the local_o365 plugin settings pages. Please see screenshot attached.

Please note that permission changes are required to be able to use this feature. See https://docs.moodle.org/39/en/Office365#3.8.0.5_and_3.9.2_release for details.

Regards,
Lai
timezone-sync

@swinster
Copy link
Author

👍 Nice

@swinster
Copy link
Author

swinster commented Nov 18, 2020

@weilai-irl Just tried this with a demo Moodle deployment and demo MS Tennant, but couldn't;t get it to work I expected

  1. Created a local Outlook profile for the user on Windows 10 machine (this happens to be the global Azure tenant admin)
  2. Opened up Outlook with this profile
  3. Logged in via OpenID to Moodle,

"Sync Outlook timezone to Moodle on login" is checked

Permissions were added for the Graph API:

  • Delegated permissions
    • MailboxSettings.Read
    • MailboxSettings.ReadWrite
  • Application permissions
    • MailboxSettings.Read
    • MailboxSettings.ReadWrite

Re-consented, via Azure and just in case, Moodle.

Checked the Moodle account setting, the user time zone is still set to the server timezone (UTC), obviously the default.

:(

@swinster
Copy link
Author

Ok, bit more investigation, I didn't realise that the Micorosft Block needed to be visited by a user when syncing via login, and it appears that a "Full sync" is required when running the corn job.

Anyhow, looks like we have lift off now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants