Skip to main content

Delete user

Delete an Entra ID user; it stays restorable from Deleted users for 30 days.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/entra_delete_user · 3 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
UserStringYesA user's object id or sign-in name (user principal name).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.