OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Add user Edit and Delete permission to the users UI

Open MikeAlhayek opened this issue 2 years ago • 2 comments

This would provide a way to enable/disable permission to Edit or Delete users explicitly.

Fixes #11762

MikeAlhayek avatar May 24 '22 23:05 MikeAlhayek

As @sebastienros suggested in meeting - changing username/password is functionally equivalent of deleting so there is not real different between two distinct permission edit/delete , hence IMO permission ManageUsers is enough for managing identity/permission related feature set provided OOTB.

However @CrestApps I also understand your requirement to have ability to add/edit users by roles other than Administrator that may need custom permission ( in your case in this PR EditUser/DeleteUser) where you might want to provide some additional functionality to manage other than identity/permission for the user being created/edited

For example - Building a CRM, where in a Sales Person may onboard new Account/Contact where he's adding sales related information that would also create a user's login account in OC as part of sales account creation process but the sales person really do not need have permission to create/manage user in OC as Administrator role has.

Above can be achieved by defining your own permission/controller and leveraging UserService/Workflow - keeping OOTB user management unchanged.

ns8482e avatar May 27 '22 15:05 ns8482e

Fix conflict by merging latest main branch.

Skrypt avatar Jul 09 '22 16:07 Skrypt

This PR was replaced by #12407

MikeAlhayek avatar Sep 14 '22 21:09 MikeAlhayek