Tips on RestAPI attributes
Hi all,
I was hoping someone can point me in the right direction. I got a Powershell script which is able to add a resource and account using the RestAPI. But I was only able to do this, by reverse engineering (guessing) the required attributes. Like, is it RESOURCENAME or RESOURCE NAME.
Now, my problem is, I want to add a password policy to the resource and account when I add it. Now it stays on the default one. I tried the attribute name PASSWORD, PASSWORDPOLICY or PASSWORDPOLICY but none of them seem to work.
For the record, my JSON object now looks like this:
$InputData = "INPUT_DATA={
'operation':{
'Details':{
'RESOURCENAME':'$ComputerName',
'ACCOUNTNAME':'$UserName',
'RESOURCETYPE':'Windows',
'PASSWORD':'$Password',
'DEPARTMENT':'',
'LOCATION':'',
'RESOURCEURL':'',
'DNSNAME':'$ComputerName',
'RESOURCECUSTOMFIELD':[
{
'CUSTOMLABEL':'Owner',
'CUSTOMVALUE':'OurDepartment'
}
]
}
}
}"
Any help is appreciated!
New to ADSelfService Plus?