This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Update webusersettings using API

Hi,

We are trying to configure user / group account using the API.

For the time being we are able to setup the basic right using updateaccount verb.

$readonly= @{
AllowNodeManagement = $false
AllowMapManagement = $false
AllowAdmin = $false
AllowReportManagement = $false
AllowAlertManagement = $false
AllowCustomize = $false
AllowUnmanage = $false
AllowDisableAction = $false
AllowDisableAlert = $false
AllowDisableAllActions = $false
}

Invoke-SwisVerb $swis Orion.accounts UpdateAccount @($accountid,$readonly)

I need now to configure the views and the right associated to each sw module.

using webusersettings i cannot configure the product:

$settingname = "Voip.IpSlaTopXXViewID"
$prop = @{
SettingValue = $false;
}
$uri = "swis://localhost/Orion/Orion.WebUserSettings/AccountID=$($user)/$($settingname)"
Set-SwisObject $swis -Uri $uri -Properties $prop

i have the following result

Set-SwisObject : Invalid key properties specified for entity Orion.WebUserSettings.

Parameter name: filter

At line:8 char:1

+ Set-SwisObject $swis -Uri $uri -Properties $prop

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Set-SwisObject], FaultExceptio

   n`1

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.SetSwisObject

can you advise on how to setup the view for the account and how to setup the application right like NCM.NCMAccountRole or IPAM.IPAMAccountRole ?

cheers