What should be the correct syntax for Orion.Accounts.UpdateAccount?

  • Based on the swagger im expecting it might need to be closer to this, but im not 100% and cant test today

    [
        {
          "Key": "enabled",
          "Value": "false"
        }
      ]

    solarwinds.github.io/.../

  • Hi, 
    An example of how I use Orion.Accounts with UpdateAccount verb to set rights : 

        $minimum_rights  =  @{
                         AllowNodeManagement = $false ;
                         AllowMapManagement = $false ;
                         AllowAdmin = $false ;
                         AllowEventClear = $false ;
                         AllowReportManagement = $false ;
                         AllowAlertManagement = $false ;
                         AllowCustomize = $false ;
                         AllowUnmanage = $true ;
                         AllowDisableAction = $false ;
                         AllowDisableAlert = $false ;
                         AllowDisableAllActions = $false ;
                         AlertSound = $false ;
                         MenuName = 'Default' ;
                         DefaultNetObjectID = '' ;
                         DisableSessionTimeout = $false ;
                         ReportFolder = 'Default Folder' ;
                         AlertCategory = $null ;
                         #LimitationID1 = 0 ;
                         #LimitationID2 = 0 ;
                         #LimitationID3 = 0 ;
                         #GroupPriority = '' ;
                         #AllowViewCopCheck = 'N' ;
                         }

        Invoke-SwisVerb -SwisConnection $swis -EntityName Orion.Accounts -Verb UpdateAccount -Arguments @($team, $minimum_rights)

    $team is the name of account