microsoft / o365-moodle

Office 365 and Azure Active Directory plugins for Moodle
GNU General Public License v3.0
180 stars 137 forks source link

Microsoft 365 Integration With Moodle - User Sync #1998

Open ck-94 opened 2 years ago

ck-94 commented 2 years ago

Hi there!

I need help with integration between Moodle (3.10+) and Microsoft 365.

I've laucned application in Azure AD and local_o365 Moodle plugin. Now there is an option for user to use OpenID connect login method. When the new user logs in Microsoft, the new account appears at Moodle for him and he can add necessary information to it. So it seems that integration can work correctly.

But I need it to happen automatically for users that I have at Azure Active Directory. There is an option at local_o365 plugin for creating accounts in Moodle for users in Azure AD. I've checked the checkbox with this option, saved changes, worked with cron (so that such tasks will be done without any pauses) and created test user at Azure AD - but there are no new users at Moodle.

What did I miss? I can provide additional information if needed.

weilai-irl commented 2 years ago

Hi @ck-94,

Could you provide the following details please:

Regards, Lai

weilai-irl commented 2 years ago

Hi @ck-94,

Do you have any updates in this issue? After the integration is set up and user sync is configured, if you run the "Sync users with Azure AD" (\local_o365\task\usersync) task, the task will try to make calls to Graph API to get users in your tenant. You should see information in the task outcomes.

Could you check what the task outcomes are please?

Regards, Lai