Forum Discussion
Delete old students using SDS
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