o365-moodle
                                
                                 o365-moodle copied to clipboard
                                
                                    o365-moodle copied to clipboard
                            
                            
                            
                        Problems synchro users on course
We get the following error message from the Microsoft API with certain users on the \local_o365\task\coursesync task :
ChangedProperties=[],NonDefaultProperties=[INTERNAL_ObjectReadCloned,INTERNAL_SingleResourceQuery]]' can only be present once as an add/remove change.
The task stops and the rest of the students are not synchronised to the team.
@ETS-MB,
Please state your Moodle and plugins (auth_oidc and local_o365) version.
A quick Google search suggests this may be related to something like a user gets added to the same Team twice in one Graph API call, is this possible in your case?
Regards, Lai
Hello,
Thank you for your answer, Moodle 3.11.9 (Build: 20220822) , local_o365 3.11.4 .
It is exactly the case, it tries to add the same personne twice . I think it happends when the user have two roles in the same course but I'm not sure, but instead of continuing with the rest, it tries 5 times and then stops and the other participants never join the team.
Regards,
Marcelo.
Hi @ETS-MB,
Could you confirm if the user has more than one role in the course that has the "local/o365:teammember" or "local/o365:teamowner" capability please.
I'll try to reproduce it locally too.
Regards, Lai
Hi @ETS-MB,
I managed to reproduce the issue locally. It happens when a user has multiple roles in a course, and some roles have the "local/o365:teamowner" cap and others have the "local/o365:teammember" cap.
I have provided a solution to fix the issue and link the pull requests here. They will be included in the next release after testing.
Regards, Lai
Thank you very much, we really appreciate your help.
Hi @ETS-MB
A fix to the reported issue has been included in the release from today (3.11.6, 4.0.3 and 4.1.1). I'll mark this issue closed.
Feel free to reopen if the fix doesn't work for you.
Regards, Lai
Hello,
Thank you very much, we will check it.
Regards,
@.***http://etsmtl.ca/ Marcelo Bellomo | Analyste de l'informatique Services d'infrastructure École de technologie supérieure | Université du Québec 1100, rue Notre-Dame Ouest, bureau E-5150.6 Montréal (Québec) H3C 1K3 Tél. 514 396-8800, poste 7419 | etsmtl.cahttp://etsmtl.ca/ Retrouvez-nous sur Facebookhttp://www.facebook.com/etsmtl - Twitterhttp://twitter.com/etsmtl - YouTubehttp://www.youtube.com/user/etsmtl - LinkedInhttps://www.linkedin.com/school/etsmtl/
De : Lai Wei @.> Envoyé : 28 février 2023 07:14 À : microsoft/o365-moodle @.> Cc : Bellomo, Marcelo @.>; Mention @.> Objet : Re: [microsoft/o365-moodle] Problems synchro users on course (Issue #2178)
A fix to the reported issue has been included in the release from today (3.11.6https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fo365-moodle%2Freleases%2Ftag%2Fv20230228_m311&data=05%7C01%7Cmarcelo.bellomo%40etsmtl.ca%7Cc277b73f6e244e78237208db1985440b%7C70aae3b79f3b484d8f9549e8fbb783c0%7C0%7C0%7C638131832393192562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=odgzBafTNl4GtQfVO07xnjtvPWXIQh1TDGpKUhtCczQ%3D&reserved=0, 4.0.3https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fo365-moodle%2Freleases%2Ftag%2Fv20230228_m400&data=05%7C01%7Cmarcelo.bellomo%40etsmtl.ca%7Cc277b73f6e244e78237208db1985440b%7C70aae3b79f3b484d8f9549e8fbb783c0%7C0%7C0%7C638131832393192562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Cg0pP6K0QxJ6mtE29XIM5Ju5STNCwCNcXJFL6YfcP%2BQ%3D&reserved=0 and 4.1.1https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fo365-moodle%2Freleases%2Ftag%2Fv20230228_m410&data=05%7C01%7Cmarcelo.bellomo%40etsmtl.ca%7Cc277b73f6e244e78237208db1985440b%7C70aae3b79f3b484d8f9549e8fbb783c0%7C0%7C0%7C638131832393192562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Df7ok%2F6g2JKobsx0zspqsgUT%2BuP5D8%2BkJiGYp85H0NE%3D&reserved=0). I'll mark this issue closed.
Feel free to reopen if the fix doesn't work for you.
Regards, Lai
Reply to this email directly, view it on GitHubhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fo365-moodle%2Fissues%2F2178%23issuecomment-1448079974&data=05%7C01%7Cmarcelo.bellomo%40etsmtl.ca%7Cc277b73f6e244e78237208db1985440b%7C70aae3b79f3b484d8f9549e8fbb783c0%7C0%7C0%7C638131832393348805%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zpLtE92v3UZIK9Mt2lewfNHpNEEwzvvGzS7QPtQolrA%3D&reserved=0, or unsubscribehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAS7LKYHC2GAUW22QISTNCITWZXTYJANCNFSM6AAAAAAQIZYW3M&data=05%7C01%7Cmarcelo.bellomo%40etsmtl.ca%7Cc277b73f6e244e78237208db1985440b%7C70aae3b79f3b484d8f9549e8fbb783c0%7C0%7C0%7C638131832393348805%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pSbTvZmBnpKObZoEuiEWMDhw6ebp0HDcmoKSRnkY%2FTI%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.@.>>