What is the correct process to create a new user in REST in a Distributed SpectroSERVER Environment?
Release : 10.3.x, 10.4.x
Component : Spectrum Core / SpectroSERVER / Spectrum OneClick / REST API
We want the ability to script user creation in Spectrum via REST API in a DSS environment.
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.
Further information of REST and additional examples can be found in this KB article.