We are trying to use PowerShell to automate IP address assignments and am running into permission issues when using an account that doesn't have global admin to all of Solarwinds.
<span style="font-family:courier new, courier;"><pre class="code codeBlock" spellcheck="false" tabindex="0"># login to Solarwinds
$swis = Connect-Swis -Hostname solarwinds.ourcompany.com -Username 'NonAdminUser' -Password 'NonAdminUserPassword'
# select an Available IP
$uri=get-swisdata $swis "SELECT TOP 1 Uri FROM IPAM.IPNode WHERE SubnetID = '1218' AND Status = '2'"
# set it to Used
Invoke-SwisVerb $swis IPAM.SubnetManagement ChangeIPStatus @((get-swisobject $swis -Uri $uri).IPAddress, "Used")
# try to set custom property
set-swisobject $swis -Uri $uri/CustomProperties -Properties @{ IPAM_Ticket_Num = 'RITM111111' }
# above command fails with below message
Set-SwisObject: Access to IPAM.IPNodeAttr denied.</pre></span>
</code></p><p><code>The above commands work without issue when we try it with an account with global permissions. Our problem is that we have been trying to figure out what permissions we require. Allowing "Node Management Rights" seems to have no effect.
Our issue seems to be similiar to this post but we would like to implement this without giving the service account global root to Solarwinds...