Open Closed

Saas Tenant API Issue in Swagger #9429


User avatar
0
Hon-Tre_IFS created

**When I created a Tenant in the Angular UI It is creating a tenant in the saastenant table and User in AbpUser Table the Both ** When I am creating the Tenant through the swagger Post API,i It is creating a tenant in the saastenant table but not the User in AbpUser Table

To create an user and tenants do we have other api's need's to invoked

  • Exception message and full stack trace:
  • Steps to reproduce the issue:

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

    hi

    Please check and share the logs.txt of your app.

    liming.ma@volosoft.com

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    The log you share contains connection string errors, the token's audit is invalid, etc.

    Is your connection string correct?

    Can you share the HTTP request info from Swagger?

    Thanks.

  • User Avatar
    0
    Hon-Tre_IFS created

    few times we are facing this error This is my connection String "ConnectionStrings": { "Default": "Server=localhost;Database=PlatformHost;Trusted_Connection=True;TrustServerCertificate=true" },

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    For ID2093 error:

    You need to select the scope when authentication in Swagger.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    What is the request body(input) of this request?

  • User Avatar
    0
    Hon-Tre_IFS created
    {
      "name": "TestingTenant",
      "editionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "activationState": 0,
      "activationEndDate": "2025-06-09T04:25:34.834Z",
      "editionEndDateUtc": "2025-06-09T04:25:34.834Z",
      "adminEmailAddress": "TestingTenant@gmail.com",
      "adminPassword": "Satya@123",
      "connectionStrings": {
        "default": "string",
        "databases": [
          {
            "databaseName": "string",
            "connectionString": "string"
          }
        ]
      }
    }
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please remove the string from input if you don't want to set connection string.

    Try this:

    {
      "name": "TestingTenant",
      "editionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "activationState": 0,
      "activationEndDate": "2025-06-09T04:25:34.834Z",
      "editionEndDateUtc": "2025-06-09T04:25:34.834Z",
      "adminEmailAddress": "TestingTenant@gmail.com",
      "adminPassword": "Satya@123"
    }
    
    
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on June 20, 2025, 11:20