Delete old students using SDS

Copper Contributor

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?

3 Replies

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. 

  • Here is a SOC article which walks through removing users - https://support.office.com/en-us/article/Delete-a-user-from-your-organization-D5155593-3BAC-4D8D-9D8...
  • If you want to remove users in bulk, PowerShell is the way to go. Use the Remove-MsolUser PowerShell cmdlet
  • Removing users through the O365 admin Center or through PowerShell will also remove their mailbox, and remove them from the Global Address List as well. Address list updates can take a few days to reflect in an outlook client due to the underlying process of updates and outlook clients receiving those updates.
  • Removing an “inactive user or mailbox” is subjective. It depends on how you define inactive (unless you’re literally referring to an Exchange Online Inactive Mailbox ). You would first need to determine if/how to identify inactive users and/or mailboxes, and then you could script a way deletion of those users/mailboxes in bulk.

Thanks,

 

Matt McGinnis

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

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