Before you can use the UAA service, you need to create a instance for your application.
If you have installed the XS Advanced administration cockpit (included by default in SAP HANA, express edition SPS03 or higher), you can use the graphical interface to create an instance of the UAA service.
The default URL for the cockpit in HANA express is https://hxehost:51036
, you can find out using the XS CLI as below:
Open the XSA cockpit with a different browser or alternate between private/incognito and normal mode. Log in with XSA_ADMIN
(or an appropriate user) if prompted. Click on the organization you are using for development:
Then continue to select the same space you have chosen for your MTA project
Expand the Services menu, select Service Marketplace and click Authorization and Trust management:
Use Instances and press New Instance. Choose service plan space
When prompted for an optional .json
file, click next. Use UAA-service
as the name of the Instance
Click Finish and you will see your instance is created.
Alternatively, if you do not have the XS Advanced Cockpit in your server, you can use the Command Line Interface:
- This can be downloaded from the SAP HANA Developer Edition directly, using the Download Manager and choosing "Clients" from the [SAP HANA, Express Edition, getting started](https://www.sap.com/developer/topics/sap-hana-express.html) or via the [SAP Service Marketplace](https://websmp208.sap-ag.de/~SAPIDP/002006825000000234912001E)
```
xs login -a http://<hostname>:3XX30 -o HANAExpress -s development -u XSA_ADMIN
```
If you are not using HANA Express, change the organization (`HANAExpress`), space (`development`) and user (`XSA_DEV`) accordingly. The API endpoint may also be different.
The space has to match the space that was setup in the Project Settings. You can check it by right-clicking on the repository folder and opening "Project Settings"

To create the UAA service issue the following command:
```
xs create-service xsuaa space APP_UAA
```
