o365-moodle icon indicating copy to clipboard operation
o365-moodle copied to clipboard

Unsync user accounts

Open AnastasiaLd opened this issue 4 years ago • 2 comments
trafficstars

Hi, I am matching Azure usernames to moodle emails during the sync. For some reason, some accounts have been synced to 'Guest' type of accounts. How can I un-sync a user and make sure this is matched to the correct member type of account rather than guest? I only see the un-sync option for logged in users but the users are not able to login in this case because they login using their M365 institution email but instead the sync is expecting them to login with their Guest account UPN.

azure_info user_connection

AnastasiaLd avatar Sep 22 '21 13:09 AnastasiaLd

Hi @AnastasiaLd,

The root of the issue is the one reported at #1734, in which the user sync task would pick up guest accounts from Azure tenant regardless of the sync settings. The issue is to be fixed in the upcoming release.

I'm not sure I fully understand what you tried to fix for the already synced guest accounts. My understanding is that if a guest account doesn't need to be synced, you can simply delete the account in Moodle, and all matching records of the account will be removed. Separately, all non-guest accounts in Microsoft would have been synced to Moodle (providing they meet the account creation restrictions, of course).

Please clarify if that's not what you want to do.

Regards, Lai

weilai-irl avatar Oct 05 '21 08:10 weilai-irl

Hi, Unsync option is required. I have the situation but with valid users (not guests). Moodle show connections is done. But status is Awaiting initial login. May be multiple records in sync table for same user? P.S.: Searched for records in table mdl_local_o365_objects.

Tehnari avatar Jan 12 '22 15:01 Tehnari