Base solution for your next web application

Activities of "northwood"

Question

I am attempting to create a simple console app to add users to a multitenancy app. We have several customers (tenants) that each have several hundred users and manually entering them in the web app is not going to happen. I'd like to just implement the CreateOrUpdateUser function in the UserAppService, but am having trouble constructing it. Can you provide step by step instructions for this task or possible include a code sample?

Thanks Adam

Question

I am developing a multi-tenant site and each tenant will have 3 roles: SuperUser (admin), CustomerAdmin and User. The idea is that the SuperUser role will be used by IT and have global permissions within the tenant. The CustomerAdmin role will be assigned to designated users at our various customers so they can mange their own users and the User role will just be a basic role to use the site with no admin menu options.

The issue I am having is that if I assign CRUD permissions for the CustomerAdmin group, they can modify users in the SuperUser group. Is there a way to block a certain role for another, or create some sort of hierarchical role system where roles on the lower rungs of the hierarchy cannot modify/view roles and permissions higher up.

Thanks Adam

Showing 1 to 2 of 2 entries