Comments (4)
Have a look at
- Article about logging in to create a tenant which will give you a good overview of this feature works.
- Sign up for a new tenant, with versioning docs
- Example3 includes the "Sign up for a new tenant, with versioning" feature. Example3 in the GitHub is build for anyone to run with demo data. Note that you need to check that the connection strings in the appsetting.json matches your SqlServer server.
from authpermissions.aspnetcore.
Thanks Jon got an idea of how it works i still have one more problem let consider below roles and permissions
new (AquaRoles.SuperAdmin,
"Super admin - only use for setup", "AccessAll"),
new (AquaRoles.TenantAdmin,
"Tenant Admin - Have access to tenant management functionality", "TenantList, TenantCreate, TenantUpdate, TenantMove, TenantDelete"),
new (AquaRoles.TenantManager,
"Tenant Manager - Have access to create sub tenant", "TenantList, TenantCreate, TenantUpdate"),
new (AquaRoles.AppMaintenance,
"App status - app maintenance", "AppStatusList, AppStatusAllDown, AppStatusTenantDown, AppStatusRemove"),
new (AquaRoles.UserAdmin,
"User Manager", "UserRead, UserSync, UserChange, UserRolesChange, UserChangeTenant, UserRemove"),
new (AquaRoles.RolesAdmin,
"Role Manager", "RoleRead, RoleChange, PermissionRead, IncludeFilteredPermissions"),
new (AquaRoles.RoleReader,
"User", "RoleRead"),
I want to create a roles TenantSuperAdmin for whom i want to give all the access that are in otherRoles except superAdmin
and the TenantSuperAdmin have all the permission for that Tenant
Example let's consider slack:- The slack admin can do all the management and can also send message and do all the activities of all the other roles.
I want to create a roles similar to that so that in the future if i add a new roles and new permissions that TenantSuperAdmin will be add automatically and without any other intercession.
Below i an example of roles how i want the code to be
new (AquaRoles.TenantSuperAdmin,
"Tenant Super admin - Have access to all the all the tenant functionality ", "TenantAccessAll")
TenantAccessAll includes all the permissions of all that are added except for the superAdmin permission AccessAll
from authpermissions.aspnetcore.
Hi @gopskrish
If you want an Role like the "Tenant Super admin" you talked about then you have to create a Role by adding all the Permissions that control the tenant admin code. The SuperAdmin Role / AccessAll Permission are there for you to access your application's first deploy.
One way is to create code that would automatically create a Role that has all of the tenant permissions you need. Here is one way to do this:
- When creating your permissions add a GroupName something like "TenantAdmin".
- Then use the
IAuthRolesAdminService
'sGetPermissionDisplay
method and filter on the GroupName. - Finally you use
IAuthRolesAdminService
'sCreateRoleToPermissionsAsync
method to create a Role containing the permissions from step 2. The Role should be aTenantAdminAdd
type.
from authpermissions.aspnetcore.
Thanks @JonPSmith
from authpermissions.aspnetcore.
Related Issues (20)
- API using AuthP and AzureAd Token HOT 1
- Some claim changes ignored until logout/login HOT 3
- Enable Audit functionality on Tenant HOT 4
- ShardingServices - value cannot be null due to update to 5.0.1 HOT 6
- User access in multiple tenants HOT 4
- Support .NET 8 HOT 4
- The name of the database date can't be null HOT 15
- Soft Delete HOT 1
- Create admin user with tenant admin role HOT 1
- Each Created Tenant should have Admin Role HOT 1
- Extend UsingEfCoreSqlServer to be able to influence DbContextOptionsBuilder HOT 2
- Not able to create hierarchical sub tenant HOT 4
- Having issue with permissions and claim HOT 3
- Custom rules for each tenant HOT 3
- `AddSuperUserToIndividualAccounts` doesn't seem to be working HOT 1
- AuthP working with Azure App Configuration HOT 1
- Version conflict detected for Microsoft.CodeAnalysis.Common. Install/reference Microsoft.CodeAnalysis.Common 4.8.0 directly HOT 6
- How exactly does the refresh token work? HOT 6
- PLEASE ADD TENANT INACTIVE PROPERTY HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authpermissions.aspnetcore.