I am using DNN 9. I've created a user with Administrators role that administer the portal. I have also users with non-Administrators role. I used a web api to delete all users except with Administrators role. I used the following:
UserController.DeleteUsers(ps.PortalId,false,false). However, all users including with Administrator roles are deleted. The 3rd parameter in the above call is deleteAdmin. I set it false...but still deleting the users in Administrators role. Did I miss something? My goal is to delete all users except portal administrators.
Thank you