Thank you much. I will try this tomorrow (EST) and possibly close ticket. As always, thanks for your help.
So this helps to remove the default behavior of creating a tenant admin with the default permissions?
I appreciate the links. What is the best way to implement this in my Blazor Server project so that I may modify as needed?
hi
. When a tenant admin is created as the default user I've noticed that they have ALL the permissions that the host does,
This is the default behavior, but you can change it by removing
PermissionDataSeedContributor
from the DI.https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionDataSeedContributor.cs#L35
when do I use the "Default & Public" checkboxes when creating a new role?
/// <summary> /// A default role is automatically assigned to a new user /// </summary> public virtual bool IsDefault { get; set; } /// <summary> /// A static role can not be deleted/renamed /// </summary> public virtual bool IsStatic { get; set; } /// <summary> /// A user can see other user's public roles /// </summary> public virtual bool IsPublic { get; set; }
So am I able to change the default
await PermissionDataSeeder.SeedAsync( RolePermissionValueProvider.ProviderName, "admin", permissionNames, context?.TenantId );
to another role that I setup such as orgadmin?
await PermissionDataSeeder.SeedAsync( RolePermissionValueProvider.ProviderName, "orgadmin", permissionNames, context?.TenantId );
I greatly apologize if this is documented somewhere. I tried to search for answers and either I'm not understanding or I didn't find the answer. When I create a new tenant, this tenant should NOT have the ability to create new tenants or modify permissions of tenants. When a tenant admin is created as the default user I've noticed that they have ALL the permissions that the host does, well except host feature management. I don't known if I'm explaining this correctly or not. Hopefully I am. Also, when do I use the "Default & Public" checkboxes when creating a new role?
If you're creating a bug/problem report, please include followings:
That's what I'm thinking as well. I will attempt this and follow-up.
As noted in other tickets, I have a multi-tenant application. I've come into some issues that I'm not sure how to work around. In addition, I don't know if this is by design or not. However, the problem I'm facing with multi-tenancy is that when I create a new tenant, I need to have certain data available to each and every new tenant. For instance; if I have a "species" table that has 50 different animal species in it I'd like TenantA, TenantB, TenantC and TenantD to have access to those 50 species. I'm wondering if this is due to the fact that when I was creating the table I selected that table to be multi-tentant?
I can't even get the application to run at the moment. I'm getting a 500.30 error.
I just tried to republish and now I'm getting 500.30 error. I have hosting bundle installed. I'm not sure why this is so hard to do. If you can help with this issue I can get you the Logs.txt file
Hello,
I've developed a Blazor Server application which uses the multitenant features. On my local development project, I'm able to create a new tenant and the user gets assigned to the tenant. I'm also able to login with the new tenant. However, in production I'm unable to create the tenant with the user. The tenant is created; however, the user is not created.