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

book

Article ID: 194536

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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

Cause

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

Environment

Release : 10.3.x, 10.4.x

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

Resolution

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