When creating ApplicationID thru Kickstart how do I access the created applicationId?

76 Views Asked by At

If I assign my own applicationId for the defaultTenant then I get error telling Invalid registration role. But if I use default FUSIONAUTH_APPLICATION_ID then I don't have access to this applicationId as it is saved as a blob in the Database. So if you can provide me either a way:

  1. To create an admin when using my applicationId for defaultTenantId
  2. To access the default application id after it is created thru kickstart

That will be very helpful.

1

There are 1 best solutions below

1
On

The default FusionAuth Application Id cannot be changed. The default can be referenced using FUSIONAUTH_APPLICATION_ID . So if you create a new application, you will not be able to use the FusionAuth role named admin unless you create that same role in your application.

If you want to create a new application, you can use a hard coded applicationId so it can be used elsewhere, or you can generate one using the UUID() function and then store it in a variable.

https://fusionauth.io/docs/v1/tech/installation-guide/kickstart