Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] new feature #25

Open
danijel88 opened this issue Mar 30, 2021 · 3 comments
Open

[Idea] new feature #25

danijel88 opened this issue Mar 30, 2021 · 3 comments

Comments

@danijel88
Copy link

Hello,
I would like to suggest one new feature here.
Imaging big applications which has mother company with child companies, all of them has HR, but with different access.
HR from Mother company can create all users for all other child companies and assign them all roles.
But HR from Child company can create only users for their company and only assign some specific roles, example(Warehouse, master data ...)
Maybe to implement some feature where based on role if user can create new user to distinguish which roles can assign to this user.
What do you think, do you see any benefit of that ?

Regards,
Danijel

@mo-esmp
Copy link
Owner

mo-esmp commented Mar 31, 2021

Hey @danijel88

It's a good idea. To implement this functionality, hierarchical organization (or departments) should be introduced and users assigned to the organization tree. For example, a user with an admin role that belongs to a higher node in the tree structure has a higher access level than a user with an admin role that belongs to a lower node.

I think it's beyond the scope of this library, however, it can be implemented separately as an extra project and package.

@mo-esmp mo-esmp mentioned this issue Jan 10, 2022
@danijel88
Copy link
Author

Hi,
Since not a lot of free time, I had refactor some code. Actually it is written blind code, only tested by running app without tests.
https://github.com/danijel88/RoleManagement
This is initial Idea any contribution is accepted. Also I had create project with some tasks, please check and if you work on something please update.

@mo-esmp
Copy link
Owner

mo-esmp commented Jan 25, 2022

@danijel88,

Thanks for sharing codes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants