Hello everyone and welcome to my blog. In today’s blog I will discuss about a preview feature that allow you to delete users from Dynamics 365/ Power platform environments.
Please note that this is a preview feature.
If you have been working from the good old days of Dynamics 365, you will be aware that users in an environment can only be disabled. They cannot be deleted.
However with this new feature you can now delete users from your environment. So let’s get started.
The first and foremost thing is to enable this preview feature. To do this, navigate to Power Platform admin center and open your environment.
Then navigate to Settings -> Features and look for the below setting and enable it.
Make sure to save the settings. Once done the next step is to Soft Delete User in the Power Platform. Remember without Soft Deleting a user, you won’t be able to delete it permanently.
But what is Soft Delete of a user? Soft Delete is basically deleting a user from an environment that is already permanently deleted from azure. Let’s see the steps involved.
The first step is to delete the user from Azure AD. Chances are you will not have this permission. But anyone having permission to do that can login to Microsoft 365 Administration center.
Navigate to users list and then click on Delete. The user is now deleted in Office 365.
Please note that at this point, the user is soft deleted in Azure. To permanently delete the user from Azure AD, login to Azure portal -> Azure Active Directory -> Deleted users (preview)
Select the deleted user. And then click on ‘Delete permanently‘ button to delete the user (refer to screenshot below).
Now the next step is to soft delete the user in the Power Platform environment. To do this, open your environment and navigate to Users List and select the ‘Disabled users‘ view.
Open the user record in a form using the ‘Manage user in Dynamics 365‘ option and then click on the Delete button. The user is now Soft Deleted in the environment.
Now the final step is to permanently delete the users in the environment. This time, navigate to the view ‘Users not in AAD and soft deleted in the environment‘.
You should now see the soft deleted user in the list. Select the user and use the ‘Delete permanently‘ option as shown in below screenshot.
The user is permanently deleted from the environment now. Remember that before you delete a user from the environment, you should make sure that all records owned by the user (transactional records/ workflows etc.) are reassigned to another user. Otherwise you will get an error while deleting the user permanently.
Hope you liked this post. If this post has helped, you can buy me a coffee.
For similar topics on Microsoft.NET and Power Platform, subscribe to my blog using the Subscribe option on right pane.
Debajit Dutta
Business Solutions MVP
Discover more from Debajit's Power Apps & Dynamics 365 Blog
Subscribe to get the latest posts sent to your email.