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

Feature request: Option to exclude "Other users" from Teams membership

Open kinnectus opened this issue 4 years ago • 1 comments

We'd like to request the ability for the Teams synchronisation to have an option to exclude - on a per-course basis - the Moodle "Other users" to prevent unnecessary users [who have category access] from being added to Teams groups.

For example: We have teachers and students manually enrolled on course, but we also have category teacher roles whose role it is to have some overview and access to courses for purposes of auditing content, reviewing grades and the odd editing of user enrolments in the event the official teacher(s) is unavailable.

We could granularly override capabilities on a per-category basis, however it would be useful to have the ability to simply "exclude" the "Other users" as a tick box in the custom course sync option - for example having "Group only", "Teams" and "Exclude 'Other users'".

kinnectus avatar Aug 31 '21 12:08 kinnectus

Hi @kinnectus,

I'd be cautious about making the changes that you suggest, as I know that the "unexpected" behaviour you described are the expected behaviour in quite a few Moodle site that we support.

Just some thoughts - for your use case, I'd suggest the following:

  • Create a new role based the existing editing teacher role but without the "local/o365:teamowner" or "local/o365:teammember" capability, and make it assignable at course and course category levels.
  • Instead of assigning editing teacher role to the users at course category level, assign this newly created role instead.

Doing this will prevent the users being added to the connected Teams.

Please review it and let me know if it will work for you.

Regards, Lai

weilai-irl avatar Sep 08 '21 14:09 weilai-irl