Open Closed

Create Tenant & user from background job #6241


User avatar
0
ravick@cloudassert.com created
  • ABP Framework version: v7.3.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no

Since ABP IO by design doesn't allow to call the tenant & user related APIs without token, how do I create a tenant and onboard a user from the https://docs.abp.io/en/abp/latest/Background-Jobs This is required for Bulk tenant & user creation.

When we tried to invoke the Saas APIs with a client credentials token, "Response status code does not indicate success 403 (forbidden)" but with the same token, from Postman it is working as expected. Below is the error message. Also, I need to hide the User Administration menu for a role, but by using the same role should be able to create user in a different flow. Setting the permission to allow the role to create, edit and delete user for the role also enable the "User Administration" menu in Angular.

Also, I need to move the "User Administration" menu as sub menu to another custom menu. How do I do it in Angular UI?

There are certain roles which will use the "User Administration" menu so we cannot override the existing menu component.


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can inject the Domain/Manager services into your background job.

  • User Avatar
    0
    ravick@cloudassert.com created

    Hi,

    We will give it a try and let you know.

    Also, can you please help me with bellow questions?

    Also, I need to hide the User Administration menu for a role, but by using the same role should be able to create user in a different flow. Setting the permission to allow the role to create, edit and delete user for the role also enable the "User Administration" menu in Angular.

    Also, I need to move the "User Administration" menu as sub menu to another custom menu. How do I do it in Angular UI?

    There are certain roles which will use the "User Administration" menu so we cannot override the existing menu component.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can create a new question, and our angular team will reply to you.

  • User Avatar
    0
    ravick@cloudassert.com created

    Ok. I have created a ticket for the same https://support.abp.io/QA/Questions/6254/Angular--Customize-SaaS-module-menu-hierarchy--permissions

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11