Delete Azure AD User Accounts and Restore Them Afterwards with the Microsoft Graph PowerShell SDK

%3CLINGO-SUB%20id%3D%22lingo-sub-3264486%22%20slang%3D%22en-US%22%3EDelete%20Azure%20AD%20User%20Accounts%20and%20Restore%20Them%20Afterwards%20with%20the%20Microsoft%20Graph%20PowerShell%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3264486%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMicrosoft%20has%20announced%20that%20it%20will%20be%20possible%20to%20recover%20a%20deleted%20service%20principal%20by%20the%20end%20of%20May.%20This%20is%20good%20news%20because%20it%20means%20that%20an%20accidental%20deletion%20can%E2%80%99t%20wreak%20the%20kind%20of%20havoc%20it%20can%20today.%20Microsoft%20hasn%E2%80%99t%20updated%20the%20APIs%20to%20manage%20soft-deleted%20service%20principals%20yet%2C%20but%20we%20can%20get%20an%20insight%20into%20what%E2%80%99s%20likely%20to%20happen%20by%20investigating%20how%20to%20manage%20deleted%20Azure%20AD%20accounts%20using%20cmdlets%20from%20the%20Microsoft%20Graph%20PowerShell%20SDK.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2022%2F03%2F23%2Fdelete-azure-ad-user-accounts%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2022%2F03%2F23%2Fdelete-azure-ad-user-accounts%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3264486%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

 

Microsoft has announced that it will be possible to recover a deleted service principal by the end of May. This is good news because it means that an accidental deletion can’t wreak the kind of havoc it can today. Microsoft hasn’t updated the APIs to manage soft-deleted service principals yet, but we can get an insight into what’s likely to happen by investigating how to manage deleted Azure AD accounts using cmdlets from the Microsoft Graph PowerShell SDK.

https://office365itpros.com/2022/03/23/delete-azure-ad-user-accounts/

0 Replies