Aug 31 2017 04:15 AM
School Data Sync (SDS) creates and manages our user accounts. SDS configuration is "New Users".
At the moment SDS does not delete old students, which no longer exist in CSV files. Is it possible to delete old students using SDS? If not, how can I delete student accounts automatically?
Sep 07 2017 10:01 AM - edited Sep 07 2017 10:02 AM
Hi Timo- thanks for the question and sorry for the tardy reply.
As you know, SDS uses the data from your SIS and appends the users in your Azure Active Directory. SDS wants to respect the SIS as the source of truth, so does not write back to the SIS. similarly, SDS does not want to unintentionally remove users from Azure active Directory if they no longet exist in your SIS. There are many examples of schools who continue to give alumni email access, or students are temporarily unenrolled but may be back. So removing users from your active directory is accomplished the same way whether or not you use SDS, that is, either one at a time using the Office 365 Admin center, or in bulk using powershell.
Thanks,
Matt McGinnis
Oct 01 2017 09:44 PM
Hi Mark,
Thank you for your answer. Student.csv has many optional attributes. If I sync "Status" or "Graduation Year", could we use those attributes in Powershell to delete old student accounts?
-Timo
Oct 04 2017 01:04 PM - edited Oct 04 2017 02:04 PM
Hello.
Yes, we could, but as those are buried deeper into the AAD structures, you could not grab those users with a normal get-msoluser, as that one is not capable of reaching these attributes. Using the O365 REST API or the upcoming Microsoft Education Graph API however, those attributes can be retrieved.
Here more about the REST API
https://msdn.microsoft.com/en-us/office/office365/api/student-rest-operations
But as I know Timo, which SIS you are using to generate the data from, that one is perfectly capable of delivering info about students retiring, so cloud-disable-data is available without any need to go thru the MS APIs, you can have the data from the SIS...
Maybe we talk about this next tuesday at TechTalks?
:)
Regards
Frank