ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

What is the correct process to create a new user via REST API in Spectrum distributed environment (DSS)?


Article ID: 194536


Updated On:


CA Spectrum


What is the correct process to create a new user in REST in a Distributed SpectroSERVER Environment?


We want the ability to script user creation in Spectrum via REST API in a DSS environment.


Release : 10.3.x, 10.4.x

Component : Spectrum Core / SpectroSERVER   /  Spectrum OneClick / REST API


By using the below query two times we can create the user on both landscapes in a DSS.


http://<oneclick server>:<port>/spectrum/restful//model?landscapeid=0x1000000&mtypeid=0x10004&attr=0x1006e&val=user_name&attr=0x11f9a&val=spectrum

http://<oneclick server>:<port>/spectrum/restful//model?landscapeid=0x2000000&mtypeid=0x10004&attr=0x1006e&val=user_name&attr=0x11f9a&val=spectrum


If we don't use this "landscapeid"  attribute in query, then by default the user is created on MLS and not on any other landscapes.

In a DSS, any user created in REST must be created on all landscapes that they wish to be part of by the landscape id.

Additional Information

Further information of REST and additional examples can be found in this KB article.


Additional REST Examples